Irit Katriel <iritkatr...@yahoo.com> added the comment:
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'") >>> ---------- nosy: +iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue29187> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com