Y
Hacker News
new
|
ask
|
show
|
jobs
by
_xnmw
740 days ago
Len() and str() are a loop under the hood.
1 comments
emidln
740 days ago
len() is an O(1) lookup of the stored length on the unicode/bytes object in Python.
link