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 Jim.Jewett
Recipients Jim.Jewett, ezio.melotti
Date 2012-01-12.15:15:09
SpamBayes Score 1.7741608e-05
Marked as misclassified No
Message-id <1326381318.07.0.368656319142.issue13776@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/library/string.html#format-specification-mini-language defines

    fill        ::=  <a character other than '}'>

and the text also excludes '{'.  It does not require that the fill character be ASCII.

However, function parse_internal_render_format_spec 
http://hg.python.org/cpython/file/c2153ce1b5dd/Python/formatter_unicode.c#l277 raises a ValueError if fill_char > 127.

I'm honestly not certain which of the three is correct, but they should be consistent, and if anything but '{' is excluded, it would be best to explain why.
History
Date User Action Args
2012-01-12 15:15:18Jim.Jewettsetrecipients: + Jim.Jewett, ezio.melotti
2012-01-12 15:15:18Jim.Jewettsetmessageid: <1326381318.07.0.368656319142.issue13776@psf.upfronthosting.co.za>
2012-01-12 15:15:10Jim.Jewettlinkissue13776 messages
2012-01-12 15:15:09Jim.Jewettcreate