Steven D'Aprano wrote:
But that's wrong! Names (little boxes) can't point to *slots in a list*, any more than they can point to other names! This doesn't work:


--> L = [None, 42, None]
--> a = L[0]
--> L[0] = 23
--> print(a)  # This doesn't work!
 23

Minor nitpick -- having a comment saying "this doesn't work" then having output showing that it does is confusing. I had to load up the interpretor to make sure I was confused! ;)

~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to