homepage

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 mark.dickinson
Recipients christian.heimes, facundobatista, mark.dickinson, poelzi
Date 2007年12月08日.00:46:02
SpamBayes Score 0.019410722
Marked as misclassified No
Message-id <1197074763.07.0.19725680361.issue1562@psf.upfronthosting.co.za>
In-reply-to
Content
It's not clear to me that this would be the right behaviour. Unless I'm 
missing something, Decimal behaves in just the same way as types like 
int, float and str in this respect:
>>> class myint(int): pass
... 
>>> a = myint(2)
>>> b = myint(3)
>>> a+b
5
>>> type(_)
<type 'int'>
Tim Peters had something to say on this subject at:
http://mail.python.org/pipermail/python-list/2005-January/300791.html 
History
Date User Action Args
2007年12月08日 00:46:03mark.dickinsonsetspambayes_score: 0.0194107 -> 0.019410722
recipients: + mark.dickinson, facundobatista, christian.heimes, poelzi
2007年12月08日 00:46:03mark.dickinsonsetspambayes_score: 0.0194107 -> 0.0194107
messageid: <1197074763.07.0.19725680361.issue1562@psf.upfronthosting.co.za>
2007年12月08日 00:46:03mark.dickinsonlinkissue1562 messages
2007年12月08日 00:46:02mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /