Message 62011 - Python tracker (original) (raw)
Message62011
Author | rhettinger |
---|---|
Recipients | facundobatista, gvanrossum, jyasskin, mark.dickinson, rhettinger |
Date | 2008-02-02.21:17:20 |
SpamBayes Score | 0.48308972 |
Marked as misclassified | No |
Message-id | 1201987042.43.0.205292995935.issue1682@psf.upfronthosting.co.za |
In-reply-to |
Content |
---|
The rational constructor should accept decimals directly. Rational(Decimal('3.1')) does not suffer the same representation error problems as Rational(float('3.1')). The conversion from decimal is lossless and does not depend on the decimal context. There is no need for a separate constructor. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2008-02-02 21:17:22 | rhettinger | set | spambayes_score: 0.48309 -> 0.48308972recipients: + rhettinger, gvanrossum, facundobatista, mark.dickinson, jyasskin |
2008-02-02 21:17:22 | rhettinger | set | spambayes_score: 0.48309 -> 0.48309messageid: 1201987042.43.0.205292995935.issue1682@psf.upfronthosting.co.za |
2008-02-02 21:17:21 | rhettinger | link | issue1682 messages |
2008-02-02 21:17:20 | rhettinger | create |