Assignment Versus Equality
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Wed Jun 29 00:51:46 EDT 2016
On Wednesday, June 29, 2016 at 4:20:24 PM UTC+12, Chris Angelico wrote:
>> https://www.jwz.org/blog/2010/10/every-day-i-learn-something-new-and-stupid/
>
> """It would also be reasonable to assume that any sane language
> runtime would have integers transparently degrade to BIGNUMs, making
> the choice of accuracy over speed, but of course that almost never
> happens..."""
>
> Python 2 did this, but Python 3 doesn't.
Huh?
ldo at theon:~> python3
Python 3.5.1+ (default, Jun 10 2016, 09:03:40)
[GCC 5.4.0 20160603] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 ** 64
18446744073709551616
>>> type(2 ** 64)
<class 'int'>
More information about the Python-list
mailing list