Confused with methods

Antoon Pardon apardon at forel.vub.ac.be
Mon Feb 7 07:29:15 EST 2005


Op 2005-02-06, Alex Martelli schreef <aleaxit at yahoo.com>:
>  
>> 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



More information about the Python-list mailing list