This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | poelzi |
|---|---|
| Recipients | poelzi |
| Date | 2007年12月06日.14:13:37 |
| SpamBayes Score | 0.11710732 |
| Marked as misclassified | No |
| Message-id | <1196950417.92.0.75484555157.issue1562@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The Decimal class doesn't use lookups through self to construct results in functions like __add__ to generate the resulting object. This makes subclassing Decimal more or less senseless since all methods have to be wrapped instead of overriding the __new__ and __init__ methods, which could be enough for immutable type. Currently I'm implementing a Money class which is more or less a Decimal with addition currency information. Because resulting Types generated with something like return Decimal(something) instead of self.__new__(...) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年12月06日 14:13:38 | poelzi | set | spambayes_score: 0.117107 -> 0.11710732 recipients: + poelzi |
| 2007年12月06日 14:13:37 | poelzi | set | spambayes_score: 0.117107 -> 0.117107 messageid: <1196950417.92.0.75484555157.issue1562@psf.upfronthosting.co.za> |
| 2007年12月06日 14:13:37 | poelzi | link | issue1562 messages |
| 2007年12月06日 14:13:37 | poelzi | create | |