print longs
William Tanksley
wtanksle at dolphin.openprojects.net
Tue Oct 5 15:27:55 EDT 1999
On Tue, 5 Oct 1999 01:23:28 -0400, Tim Peters wrote:
>sqrt(4) is utterly vanilla, and it's computer-centric nonsense that the
>"+0j" somehow makes 4 not 4. This all ties into a principled reason for 1/2
>to return 0.5, of course -- or some other internal equivalent that doesn't
>suffer silent catastrophic loss of information. These "different rules for
>different numbers", like tagging long ints with "L", don't make much sense
>to people.
I'd like that too. Only keep floats out of it if possible -- Lisp had the
right idea there. I think 1/2 should return 1/2 unless otherwise coerced.
ABC worked that way, IIRC.
>a-sister-made-me-memorize-that-once<wink>-ly y'rs - tim
'bots have sisters?
--
-William "Billy" Tanksley
More information about the Python-list
mailing list