[New-bugs-announce] [issue29696] Use namedtuple in Formatter.parse iterator response
Facundo Batista
report at bugs.python.org
Thu Mar 2 10:34:03 EST 2017
New submission from Facundo Batista:
Right now:
>>> Formatter().parse("mira como bebebn los peces en el {rio} {de} {la} plata")
<formatteriterator object at 0x7f1fc7c7f150>
>>> next(_)
('mira como bebebn los peces en el ', 'rio', '', None)
This returned tuple should be a namedtuple, so it's self-explained for people exploring this (and usage of the fields become clearer)
----------
components: Library (Lib)
messages: 288807
nosy: facundobatista
priority: normal
severity: normal
status: open
title: Use namedtuple in Formatter.parse iterator response
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29696>
_______________________________________
More information about the New-bugs-announce
mailing list