Hacker News new | ask | show | jobs
by emidln 743 days ago
len() is an O(1) lookup of the stored length on the unicode/bytes object in Python.