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 gvanrossum, levkivskyi, serhiy.storchaka
Date 2019-10-08.08:18:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

>>> from typing import NamedTuple
>>> import pickle
>>> class A:
...     class B(NamedTuple):
...         x: int
>>> pickle.dumps(A.B)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class '__main__.B'>: attribute lookup B on __main__ failed
Date User Action Args
2019-10-08 08:18:02serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi
2019-10-08 08:18:02serhiy.storchakasetmessageid: <>
2019-10-08 08:18:02serhiy.storchakalinkissue38405 messages
2019-10-08 08:18:02serhiy.storchakacreate