Samuel
@samuel.fm
python is actually so real for this one. respect.
2 17Python caches small numbers so has a similar bug, last I checked. Maybe only up till 78 or whatever.
3 5yeah this is why, I think
2 2ah silly me I thought that was a JS interpreter and didn't understand that you said .. too early morning :p
but yes that's it.
2you never know when you're going to need 78 again
2 579 is right out, though
1 1that's the point you realize your Holy Hand Grenade's a dud
2hmm seems like int(i) is always int(i), but i = n; j = n doesn't guarantee i is j
1 2itโs probably weird that python has an โisโ operator that seems to just do a pointer comparison
like why leak that abstraction in particular when youโre working so hard not to expose the fact that pointers exist
2 4i think the "real" use case is with booleans where you're ensuring you're comparing against True and not something truthy, without being like (type(x) == bool and x)
1