On 06 April 2000, Guido van Rossum said: > This is because repr() now uses full precision for floating point > numbers. round() does what it can, but 3.1416 just can't be > represented exactly, and "%.17g" gives 3.1415999999999999. > > This is definitely the right thing to do for repr() -- ask Tim. > > However, it may be time to switch so that "immediate expression" > values are printed as str() instead of as repr()... +1 on this: it's easier to change "foo" to "`foo`" than to "str(foo)" or "print foo". It just makes more sense to use str(). Oh, joy! oh happiness! someday soon, I may be able to type "blah.__doc__" at the interactive prompt and get a readable result! Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4