[pypy-issue] [issue1180] Formatting a bool value is not equal to CPython's result
Eunchong Yu
tracker at bugs.pypy.org
Mon Jun 18 11:43:18 CEST 2012
New submission from Eunchong Yu <kroisse at gmail.com>:
Formatting a `bool` value(True, False) by str.format() returned '1' or '0' on
PyPy 1.8.0, rather than 'True' or 'False' like the CPython's behavior.
Formatting that by the % operator has no problem. Here is my tries:
https://gist.github.com/2947527
I tried to explain it, and I found that CPython's bool.__format__() doesn't
override int.__format__(). However, int.__format__() formatted the boolean value
`True` into 'True'.
----------
messages: 4455
nosy: kroisse, pypy-issue
priority: bug
status: unread
title: Formatting a bool value is not equal to CPython's result
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1180>
________________________________________
More information about the pypy-issue
mailing list