Y
Hacker News
new
|
ask
|
show
|
jobs
by
bendotc
5179 days ago
Yeah, I wasn't crazy about the implication that str and int only do this via special built-in magic. In reality, you can overload __new__ to return whatever you want, including object interning.