On Wed, Jul 26, 2017 at 8:47 PM, Alexandre Brault <abra...@mapgears.com> wrote:
> > The main use case for ntuple literals, imo, would be to replace > functions like this: > >>> def spam(...): > ... [...] > ... return eggs, ham > > With the more convenient for the caller > >>> def spam(...): > ... [...] > ... return (eggs=eggs, ham=ham) > > Yes, but for the caller it's just as convenient without new namedtuple syntax. If there's new *syntax* for returning multiple values, it would indeed hopefully look more into the future and not create a tuple. -- Koos -- + Koos Zevenhoven + http://twitter.com/k7hoven +
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/