| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

FAQ

This version was saved 16 years, 6 months ago View current version     Page history
Saved by PBworks
on October 10, 2007 at 10:56:35 am
 



Copying objects

Two names referencing the same mutable object. Pointers, references, and how things are different in C++

 

Why list (mutable) cannot be a dict key

 

thread (see Sion Arrowsmith reply)

 

d = {}

k = 1, 2

dk = None

 

Now, if I were to do:

 

k.append(3)

 

what would you expect:

 

d.keys()

Comments (0)

You don't have permission to comment on this page.