Op 2005-02-06, Alex Martelli schreef <[EMAIL PROTECTED]>: > >> Isn't that inconsistent? > > That Python has many callable types, not all of which are descriptors? > I don't see any inconsistency there. Sure, a more generalized currying > (argument-prebinding) capability would be more powerful, but not more > consistent (there's a PEP about that, I believe).
I think python is a bit inconsistent here, by using 'def' for two different things. I think it would have been more consistent if def always produces a function to be used as such and that methods had there own keyword. That would make the magic of bound methods more explicit. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list