[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-24 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e32da8da58e by Eric V. Smith in branch 'default': Issue 25206: fix f-string exceptions to match the code. https://hg.python.org/peps/rev/7e32da8da58e -- ___ Python tracker

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the feedback. On the f"{expr3!s}" → format(str(expr3)) issue, I'm trying to show the 1 argument version of format (which is what the code generator actually calls). Although I realize that's not a great example, since the string conversion is implic

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset df19ba9217e4 by Eric V. Smith in branch 'default': More on issue 25206: typo. https://hg.python.org/peps/rev/df19ba9217e4 -- ___ Python tracker ___

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Also in the first example, the colon (format specifier) and exclamation mark (conversion) are in the wrong order. It should either be f"{expr3:!s}" → format(expr3, "!s") or f"{expr3!s:}" → format(str(expr3), "") -- nosy: +martin.panter __

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 831276834e4b by Eric V. Smith in branch 'default': Partial fix for issue 25206: Fixed format() call. https://hg.python.org/peps/rev/831276834e4b -- nosy: +python-dev ___ Python tracker

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: """ For example, this code: f'abc{expr1:spec1}{expr2!r:spec2}def{expr3:!s}ghi' Might be be evaluated as: 'abc' + format(expr1, spec1) + format(repr(expr2)) + 'def' + format(str(expr3)) + 'ghi' """ format(repr(expr2)) should be format