[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

Steven D'Aprano report at bugs.python.org
Wed Jul 28 17:35:25 EDT 2021


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Hi Pavel.

Thank you for your submission, but your request is based on a serious misunderstanding of the koan from PEP 20.

You might consider that Python has, for example, both for loops and while loops; it has lists and tuples; it has ints and floats and Decimals.

Even if they were "the same", we would not remove one or the other just to satisfy PEP 20. Even if we did decide to do so, but the process could only *start* in 3.11 or later, 3.6 through 3.10 are all in feature-freeze and no changes except bug-fixes are permitted.

Before we could make such a major change, you would need to discuss this on the Python-Ideas mailing list to gather feedback and support for the idea. You would need to get at least one core developer willing to act as champion for it, and write a PEP. The bug tracker is not the place for this.

----------
nosy: +steven.daprano
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list