pavel-lexyr <pa...@lexyr.com> added the comment:

Touche. Another advantage a namedtuple has is that it can expand out of the box 
- i.e., can write something like

> for x, y, z in namedtuple_list:

without any list comprehensions.

Can we bring those advantages into the dataclass while also preserving the 
interface? Maybe a special version of the implementation behind the scenes, 
something similar to what C++ does with bool vectors.

----------
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44768>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to