Vajrasky Kok added the comment:

FYI, if you change:

setattr(b, 'say', types.MethodType(f.say, b))

to:

setattr(b, 'say', types.MethodType(Foo.say, b))

it will print the source correctly.

----------
nosy: +vajrasky

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to