[Tutor] dictionaries, objects and scoping...

Kent Johnson kent37 at tds.net
Tue Jan 22 03:25:21 CET 2008

John Morris wrote:

> Why does the pop in the Bar class nuke the srv k & v from Foo.name 
> <http://Foo.name> as well?

Because they are both names for the same dict.

Assignment in Python does not copy values; it binds a name to a value. 
Some good references:


More information about the Tutor mailing list