[Python-ideas] binding vs rebinding

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 7 23:07:11 CET 2009


spir wrote:

> [Is this a consequence that namespaces are implemented as dicts?
> I cannot imagine, at the underlying level, how adding an entry to a hash
> table can be the same as changing an entry's value.]

There's a difference somewhere, but it's far below the
level of bytecode, buried somewhere in the C code that
implements the bytecodes.

-- 
Greg



More information about the Python-ideas mailing list