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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26522>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to