Y
Hacker News
new
|
ask
|
show
|
jobs
by
fabioz
1399 days ago
Just as a note, the way that Python stores the items isn't always 4 bytes per char, it depends on the actual string contents.
I think that
https://rushter.com/blog/python-strings-and-memory/
is a nice reference on that.
1 comments
nerdponx
1399 days ago
Interesting and good to know! CPython is really quite impressive with all of these little optimizations.
link