[Python-Dev] Expert floats

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Mar 31 23:24:12 EST 2004


Andrew Koenig <ark-mlist at att.net>:

> Python gives me none of these, and instead gives me something else
> entirely that is almost never what I would like to see, given the
> choice.

Er, you do realise this only happens when the number
pops out in the interactive interpreter, or you use
repr(), don't you?

If you convert it with str(), or print it, you get
something much more like what you seem to want.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+



More information about the Python-Dev mailing list