
report at bugs
Nov 5, 2009, 8:22 AM
Post #1 of 6
(265 views)
Permalink
|
|
[issue7267] format method: c presentation type broken
|
|
New submission from Walter Dörwald <walter [at] livinglogic>: The c presentation type in the new format method from PEP 3101 seems to be broken: Python 2.6.4 (r264:75706, Oct 27 2009, 15:18:04) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> u'{0:c}'.format(256) u'\x00' The PEP states: 'c' - Character. Converts the integer to the corresponding Unicode character before printing, so I would have expected this to return u'\u0100' instead of u'\x00'. ---------- components: Interpreter Core messages: 94935 nosy: doerwalter severity: normal status: open title: format method: c presentation type broken type: behavior versions: Python 2.6 _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7267> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|