[issue26522] pickle.whichmodule(object.__new__, None) = 'email.MIMEAudio'
Serhiy Storchaka
report at bugs.python.org
Wed Mar 9 14:56:19 EST 2016
Serhiy Storchaka added the comment:
I get other result:
>>> import pickle
>>> pickle.whichmodule(object.__new__, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython2.7/Lib/pickle.py", line 823, in whichmodule
if name != '__main__' and getattr(module, funcname, None) is func:
TypeError: getattr(): attribute name must be string
Could you please provide the full example?
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26522>
_______________________________________
More information about the Python-bugs-list
mailing list