
July 26, 2017
10:33 p.m.
On Wed, Jul 26, 2017 at 8:47 PM, Alexandre Brault <abrault@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 +