[Python-Dev] Minutes from the Numeric Coercion dev-day session
Thomas Wouters
thomas@xs4all.net
Tue, 13 Mar 2001 00:47:14 +0100
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!