Using String Methods In Jump Tables

Tim Daneliuk tundra at
Fri Aug 20 02:52:29 CEST 2010

On 8/19/2010 6:41 PM, Chris Rebert wrote:

> <snip>
>>   How do you get a reference to a method found in one object instance, but
>>   actually apply it to another instance of the same class?  I'm guessing this may
>>   involve fiddling with some of the internal __ variables, but I'm not
>>   quite sure where to go next.
> You must access the method from the class rather than the instance;
> this produces an "unbound" method that is not bound to a specific
> instance and does not have self already filled-in.
> In your dictionary, replace "".lower with str.lower, and so on for the
> other methods.
> Cheers,
> Chris
> --

Thanks Chris - just what I needed ...

Tim Daneliuk
tundra at

More information about the Python-list mailing list