Unbound methods of types

Ben Hutchings ben.hutchings at roundpoint.com
Sun Apr 29 19:06:20 EDT 2001


"Alex Martelli" <aleaxit at yahoo.com> writes:
<snip>
> # 4. special case, as you note, for string. stuff
> L = map(string.capitalize, l)
<snip>

I feel that it ought to be possible to use type("").capitalize here,
as one could do with a class method.  Why is it not possible to get
unbound methods from types?  Should it be?

-- 
Any opinions expressed are my own and not necessarily those of Roundpoint.



More information about the Python-list mailing list