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 iritkatriel
Recipients Matt.Dodge, alexandre.vassalotti, iritkatriel, serhiy.storchaka
Date 2021-02-17.19:39:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613590749.07.0.662271563777.issue29187@roundup.psfhosted.org>
In-reply-to
Content
Still the same in 3.10:

Python 3.10.0a5+ (heads/bpo-43146-dirty:8f5cf4d381, Feb 17 2021, 14:51:27) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> try:
...     def func():
...         class C: pass
...         return C
...     import pickle
...     pickle.dumps(func()())
... except BaseException as e:
...   exc = e
...
>>> exc
AttributeError("Can't pickle local object 'func.<locals>.C'")
>>>
History
Date User Action Args
2021-02-17 19:39:09iritkatrielsetrecipients: + iritkatriel, alexandre.vassalotti, serhiy.storchaka, Matt.Dodge
2021-02-17 19:39:09iritkatrielsetmessageid: <1613590749.07.0.662271563777.issue29187@roundup.psfhosted.org>
2021-02-17 19:39:09iritkatriellinkissue29187 messages
2021-02-17 19:39:08iritkatrielcreate