On Mon, Mar 12, 2001 at 06:19:39PM -0500, Guido van Rossum wrote: > One thing we *could* agree to [at lunch], after I pressed > some people: 1/2 should return 0.5. Possibly 1/2 should not be a > binary floating point number -- but then 0.5 shouldn't either, and > whatever happens, these (1/2 and 0.5) should have the same type, be it > rational, binary float, or decimal float. Actually, I didn't quite agree, and still don't quite agree (I'm just not happy with this 'automatic upgrading of types') but I did agreed to differ in opinion and bow to your wishes ;) I did agree that if 1/2 should not return 0, it should return 0.5 (an object of the same type as 0.5-the-literal.) -- Thomas Wouters <thomas@xs4all.net> Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
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