[New-bugs-announce] [issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

Antony Lee report at bugs.python.org
Tue Nov 13 09:30:46 EST 2018


New submission from Antony Lee <anntzer.lee at gmail.com>:

Currently, dataclasses created by make_dataclass are not picklable, because their __module__ is set to "types".  It seems that this would be easily fixed by letting make_dataclass gain a `module` and a `qualname` kwarg, similarly to the Enum functional form (https://docs.python.org/3/library/enum.html#functional-api).

----------
components: Library (Lib)
messages: 329847
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: Add `module`/`qualname` arguments to make_dataclass for picklability
versions: Python 3.7

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


More information about the New-bugs-announce mailing list