Message387185
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'")
>>> |
|
Date |
User |
Action |
Args |
2021-02-17 19:39:09 | iritkatriel | set | recipients:
+ iritkatriel, alexandre.vassalotti, serhiy.storchaka, Matt.Dodge |
2021-02-17 19:39:09 | iritkatriel | set | messageid: <1613590749.07.0.662271563777.issue29187@roundup.psfhosted.org> |
2021-02-17 19:39:09 | iritkatriel | link | issue29187 messages |
2021-02-17 19:39:08 | iritkatriel | create | |
|