[Python-ideas] namedtuple literals [Was: RE a new namedtuple]
Chris Barker
chris.barker at noaa.gov
Thu Jul 27 19:31:25 EDT 2017
On Thu, Jul 27, 2017 at 2:50 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Fri, Jul 28, 2017 at 7:22 AM, Pavol Lisy <pavol.lisy at gmail.com> wrote:
> > maybe:
> > for x, y, z from spam:
> > print(x, y, z)
>
> What you're asking for is something like JavaScript's "object
> destructuring" syntax.
Wasn't there just a big long discussion about something like that on this
list?
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170727/91f8f945/attachment.html>
More information about the Python-ideas
mailing list