[Python-3000] The case for unbound methods?
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 7 07:30:21 CET 2008
Anthony Tolle wrote:
> Have I made a case for the existence of unbound methods?
Not very well, IMO.
Without seeing a concrete use case, it's hard to be
sure, but my feeling is that there's almost certainly
a better way of thinking about the problem you're
trying to solve -- one that doesn't require introspecting
on a callable object to find out whether its implementation
involves a 'self' argument. That's *not* duck typing,
it's look-inside-before-you-leap.
--
Greg
More information about the Python-3000
mailing list