[Python-Dev] Backporting PEP 3127 to trunk
greg.ewing at canterbury.ac.nz
Fri Feb 22 21:04:05 CET 2008
Raymond Hettinger wrote:
> ISTM that we need two versions of oct() like
> we need a hole in the head.
I don't know about oct(), but I found hex() to be quite useful
the other day when I was using the interactive interpreter to
to some hex calculations. It would have been quite tedious
having to say "%x".format(_) or some such all the time to
see the results in hex.
An alternative might be to have some variable that can be
set to control the format of numbers printed by the interactive
More information about the Python-Dev