New submission from Jim Jewett <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue13776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com