"Kent Johnson" <[EMAIL PROTECTED]> wrote >> def register(self, handler): >> """register: (object (object -> string) -> string or None) > > Maybe it's just me but I don't have a clue what 'object (object -> > string)' is trying to convey.
This might be an interesting test of the legibility but I read that as being: register takes a handler argument that should be a callable object which in turn takes a stringlike argument and returns either a string or None Thus def f(s): if s and isinstance(s,str) : return s else: return None f would be a valid value for handler. Is that what you meant Danny? Otherwise I agree with all that Kent has said. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor