This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients docs@python, eric.araujo, eric.smith, flox
Date 2010-09-06.01:21:27
SpamBayes Score 1.3401631e-06
Marked as misclassified No
Message-id <1283736090.19.0.854974367939.issue9780@psf.upfronthosting.co.za>
In-reply-to
Content
The PEP 3101 does not prohibit any character for the 'fill' argument.

Another example which just works:

>>> '{:{fill}^6}'.format(42, fill='{')
'{{42{{'

>>> '{:{fill}^6}'.format(42, fill='}')
'}}42}}'


I don't care if '{' and '}' are prohibited when using simple formatting syntax.  This is not a common use case, and there are workarounds (either using format() builtin or the recursive formatting).

A documentation fix could be enough.
History
Date User Action Args
2010-09-06 01:21:30floxsetrecipients: + flox, eric.smith, eric.araujo, docs@python
2010-09-06 01:21:30floxsetmessageid: <1283736090.19.0.854974367939.issue9780@psf.upfronthosting.co.za>
2010-09-06 01:21:28floxlinkissue9780 messages
2010-09-06 01:21:27floxcreate