can't rebind magic methods

Michael Tobis mtobis at gmail.com
Mon Mar 20 15:38:55 EST 2006


Thanks! Only a minor correction: the last line should be

    _setdelegate(myint, int,'__%s__' % spec)

The business with f.func_name struck me as unnecessary, but I was quite
wrong. 

This was an interesting exercise for me. Thanks.

Michael




More information about the Python-list mailing list