On Wed, Jul 19, 2017 at 6:08 PM, Guido van Rossum <gu...@python.org> wrote:

> Regarding that spec, I think there's something missing: given a list (or
> tuple!) of values, how do you turn it into an 'ntuple'? That seems a common
> use case, e.g. when taking database results like row_factory in sqlite3.
>

One obvious choice is to allow for construction from a dict with **kwargs
unpacking. This actually works now that keyword arguments are ordered.

This would mean either ntuple(**kwargs) or the possibly too cute (**kwargs)
.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to