6 ms·
I love the "check if integer addition will overflow" in Python: def adding_will_overflow(x, y): return False I have no idea if it's actually true but I fi
by suixo 7y ago
I love the "check if integer addition will overflow" in Python:
def adding_will_overflow(x, y):
return False
I have no idea if it's actually true but I find that funny.
- ORioN63 7y agoYeah, integers can't overflow. It will just use all of your memory. Unless you're using a C bind, like numpy.