[New-bugs-announce] [issue13776] formatter_unicode.c still assumes ASCII

Jim Jewett report at bugs.python.org
Thu Jan 12 16:15:18 CET 2012

New submission from Jim Jewett <jimjjewett at gmail.com>:

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.

components: Unicode
messages: 151128
nosy: Jim.Jewett, ezio.melotti
priority: normal
severity: normal
status: open
title: formatter_unicode.c still assumes ASCII
type: behavior

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list