Sujet : Re: The Folly of Python
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacyDate : 16. Apr 2024, 01:48:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uvkebu$i40c$1@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Mon, 15 Apr 2024 07:42:20 -0400, Chris Ahlstrom wrote:
Integers are immutable objects in Python. When you modify an
integer, a new object is created instead of modifying the existing
one.
x = 10
Wowza!
>>> int("10000000002") is 10000000002
False
>>> int("10000000002") == 10000000002
True
Double wowza!