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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29696>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to