This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients canjobear, serhiy.storchaka
Date 2016-03-09.19:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457553379.53.0.509758881689.issue26522@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-03-09 19:56:19serhiy.storchakasetrecipients: + serhiy.storchaka, canjobear
2016-03-09 19:56:19serhiy.storchakasetmessageid: <1457553379.53.0.509758881689.issue26522@psf.upfronthosting.co.za>
2016-03-09 19:56:19serhiy.storchakalinkissue26522 messages
2016-03-09 19:56:19serhiy.storchakacreate