Message74624
The attached file produced the following result:
______________________
trott$ python2.5 p6.py
[]
[1234]
______________________
I expected both times the empty list since the print
statement prints just a defaulted parameter ("e") which
was defaulted to an empty list literal ("[]") and never set
by supplying an actual class parameter.
The object property "entries" appears to be shared by
both instances. Why? |
|
Date |
User |
Action |
Args |
2008-10-10 09:24:44 | trott | set | recipients:
+ trott |
2008-10-10 09:24:44 | trott | set | messageid: <1223630684.29.0.595274599249.issue4098@psf.upfronthosting.co.za> |
2008-10-10 09:23:43 | trott | link | issue4098 messages |
2008-10-10 09:23:43 | trott | create | |
|