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

You're actually wrong about Python's sum function, it works for anything you can + on BUT strings [0], this is to avoid quadratic behavior with string concatenation.

[0] https://github.com/python/cpython/blob/5837d0418f47933b2e3c1...




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

Search: