[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

Rémi Lapeyre report at bugs.python.org
Sun Dec 30 15:36:24 EST 2018


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

Hi @Anthony.Lee, the __module__ is wrong indeed. The new changeset in https://github.com/python/cpython/pull/11371 should implement what you need.

If you don't specify the new `module` and `qualname` parameters, make_dataclass() will try to determine the correct `module` so you should not need to change your code.

----------
nosy: +remi.lapeyre

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35232>
_______________________________________


More information about the Python-bugs-list mailing list