Movatterモバイル変換


[0]ホーム

URL:


ANN: Experimental Number Types (Integer, Rational, Floats)

Alex Martellialeaxit at yahoo.com
Tue Apr 24 12:10:02 EDT 2001


"Delaney, Timothy" <tdelaney at avaya.com> wrote in messagenews:mailman.988071995.19962.python-list at python.org...    [snip]> 12+2/3 - not ambiguous and valid if the above is valid (integer +rational),> I would probably want the compiler to start rolling literals together at> this point... otherwise there would be 2 runtime calculations going on> (division to form rational, then addition of integer).There are two runtime calculations in many "complex literals" (becausethere's actually no complex literal...:-) today, e.g -2.3+4.5j (becausesign is also not part of the numeric literal...).Alex


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp