This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author graingert
Recipients AlexWaygood, FHTMitchell, JelleZijlstra, dlukes, eric.smith, graingert, gvanrossum, kj, levkivskyi, python-dev, rhettinger, serhiy.storchaka, sobolevn
Date 2022-03-05.18:41:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CABnLcR7Jr1=6Xp1poyZSK7=E4TNvqbtR_rP7+_E-CO3aqM9QRw@mail.gmail.com>
In-reply-to <[email protected]>
Content
The main advantage for my usecase is support for heterogeneous unpacking

On Sat, Mar 5, 2022, 6:04 PM Alex Waygood <[email protected]> wrote:

>
> Alex Waygood <[email protected]> added the comment:
>
> I sense we'll have to agree to disagree on the usefulness of NamedTuples
> in the age of dataclasses :)
>
> For me, I find the simplicity of the underlying idea behind namedtuples —
> "tuples with some properties bolted on" — very attractive. Yes, standard
> tuples are more performant, but it's great to have a tool in the arsenal
> that's essentially the same as a tuple (and is backwards-compatible with a
> tuple, for APIs that require a tuple), but can also, like dataclasses, be
> self-documenting. (You're right that DoneAndNotDoneFutures isn't a great
> example of this.)
>
> But I agree that this shouldn't be a priority if it's hard to accomplish;
> and there'll certainly be no complaints from me if energy is invested into
> making dataclasses faster.
>
> ----------
>
> _______________________________________
> Python tracker <[email protected]>
> <https://bugs.python.org/issue43923>
> _______________________________________
>
History
Date User Action Args
2022-03-05 18:41:34graingertsetrecipients: + graingert, gvanrossum, rhettinger, eric.smith, python-dev, serhiy.storchaka, levkivskyi, dlukes, JelleZijlstra, FHTMitchell, sobolevn, kj, AlexWaygood
2022-03-05 18:41:34graingertlinkissue43923 messages
2022-03-05 18:41:34graingertcreate