Newbie list question

Daniel Dittmar daniel.dittmar at sap.com
Fri Jul 13 18:53:46 CEST 2001


> >>> foo = foo + ['c']      #  Add 'c' back to foo.
> >>> foo
> ['a', 'b', 'c']            #  'c' is back.  Good.
> >>> bar
> ['a', 'b']                 #  ??? What the... ???  Where is 'c'?

If you want to find out this one yourself, use
>>> id (foo), id (bar), id (baz)
at various places

Daniel
--
Daniel Dittmar
daniel.dittmar at sap.com
SAP DB, SAP Labs Berlin
http://www.sapdb.org/







More information about the Python-list mailing list