[issue44109] missing dataclass decorator in match-statement example

Raymond Hettinger report at bugs.python.org
Fri May 14 13:06:16 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Thoughts from others?

As it stands, the Point class is weird and atypical by only using class variables.  The example would be improved by adding @dataclass or inheriting from typing.NamedTuple.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list