Message74624
| Author | trott |
|---|---|
| Recipients | trott |
| Date | 2008-10-10.09:23:42 |
| SpamBayes Score | 0.00014758915 |
| Marked as misclassified | No |
| Message-id | <1223630684.29.0.595274599249.issue4098@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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? |
|
| History | |||
|---|---|---|---|
| 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 | |