Message140162
| Author |
r.david.murray |
| Recipients |
JBernardo, r.david.murray |
| Date |
2011年07月11日.21:07:52 |
| SpamBayes Score |
0.0013983025 |
| Marked as misclassified |
No |
| Message-id |
<1310418473.76.0.0414487337635.issue12538@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To set the value of an immutable type you must use the __new__ method. By the time __init__ is called the value has already be established, and in the case of int it defaults to 0. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月11日 21:07:53 | r.david.murray | set | recipients:
+ r.david.murray, JBernardo |
| 2011年07月11日 21:07:53 | r.david.murray | set | messageid: <1310418473.76.0.0414487337635.issue12538@psf.upfronthosting.co.za> |
| 2011年07月11日 21:07:53 | r.david.murray | link | issue12538 messages |
| 2011年07月11日 21:07:52 | r.david.murray | create |
|