Hacker News new | past | comments | ask | show | jobs | submit login

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.




Yeah, integers can't overflow. It will just use all of your memory.

Unless you're using a C bind, like numpy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: