[Python-Dev] Rethinking intern() and its data structure

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 10 03:22:10 CEST 2009

John Arbash Meinel wrote:
> And the way intern is currently
> written, there is a third cost when the item doesn't exist yet, which is
> another lookup to insert the object.

That's even rarer still, since it only happens the first
time you load a piece of code that uses a given variable
name anywhere in any module.


More information about the Python-Dev mailing list