On 2017-07-20 11:02, Paul Moore wrote: >> Also, what's the advantage of (x=1, y=2) over ntuple(x=1, y=2)? I.e., >> why does this need to be syntax instead of a library? > > Agreed. Now that keyword argument dictionaries retain their order, > there's no need for new syntax here. In fact, that's one of the key > motivating reasons for the feature.
Isn't there a speed aspect? That is, doesn't the library approach require creating (and likely discarding) a dictionary every time a new ntuple is created? The syntax approach wouldn't need to do that. Clément. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/