Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nneonneo
on Aug 24, 2017
|
parent
|
context
|
favorite
| on:
Weird Python Integers
This would be due to
string interning
, which automatically caches small strings, which are very common because attribute names are just strings.
Dylan16807
on Aug 25, 2017
[–]
To be clear the question of
which
strings to intern is up to an implementation of string interning. Only small strings, all strings, or even only large strings are all options that are good for different reasons.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: