[issue26276] Inconsistent behaviour of PEP 3101 formatting between versions

Eric V. Smith report at bugs.python.org
Wed Feb 3 07:29:20 EST 2016


Eric V. Smith added the comment:

Hi, Mark.

Yes, PEP 3101 is very much under-specified in this area. I tried to avoid the same mistake in PEP 498, although of course that's a different problem area.

I don't recall why this particular case broke between 3.2.3 and 3.4.3. I'll try and track it down. I'm sure we were trying to "fix" some other edge condition.

FWIW, in 3.4.3 this also fails, as expected:
>>> "{ {{ 0} }}".format_map({' {{ 0} }': 'X'})

Can you try it in 3.2.3? I expect it to work, but you never know.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26276>
_______________________________________


More information about the Python-bugs-list mailing list