Integer division (was: Case-sensitivity... (was: Damnation!))
Juergen A. Erhard
jae at ilk.de
Mon May 22 11:13:15 EDT 2000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "François" == François Pinard <pinard at iro.umontreal.ca> writes:
François> Moshe Zadka <moshez at math.huji.ac.il> écrit:
>> [...] Try to single-step
>> python -c '1/2'
>> And see that the hardware instruction is lost in a sea of function calls
>> and jumps all over the place.
François> You are surely right, and are exposing my naivety :-).
François> But do not deprive me of all my dreams. Let's not give
François> so soon into the thinking that Python might never be
François> cleverly compilable. Who knows if things would not
François> evolve in a direction that might allow such things, one
François> of these days.
But then we can also dream of a Python that optimizes `int(1/2)' to
mean `1 div 2' (`div' here being an integer only division of course).
Bye, J
- --
Jürgen A. Erhard eMail: jae at ilk.de phone: (GERMANY) 0721 27326
My WebHome: http://members.tripod.com/Juergen_Erhard
"Outside of a dog, a man's best friend is a book;
inside of a dog, it's very dark." -- Groucho Marx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Use Mailcrypt and GnuPG <http://www.gnupg.org/>
iEYEARECAAYFAjkpTooACgkQN0B+CS56qs2avwCfWLN29WjCyjB9n4ijdqibr9HX
2UcAni8sIW79L45MucftyNIM5rjkc8DP
=ybHd
-----END PGP SIGNATURE-----
More information about the Python-list
mailing list