Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python has optimized string appending in the form of:

s = s + "foo"

and

s += "foo"

Since 2005 with the release of Python 2.4:

https://docs.python.org/3/whatsnew/2.4.html#optimizations



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: