Message167346
| Author |
skrah |
| Recipients |
mark.dickinson, pitrou, skrah, steven.daprano |
| Date |
2012年08月03日.19:41:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1344022908.17.0.617770348728.issue15544@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> OTOH, IEEE 754 *does* cover floating-point to int conversions (5.4.1, 5.8): those fall under 'general-computational operations', and as such should signal when given an sNaN.
That sounds good. Let's keep the ValueError then. We could consider
InvalidOperation like with Decimal('snan').to_integral(), but that's
probably confusing in the context of the math module. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月03日 19:41:48 | skrah | set | recipients:
+ skrah, mark.dickinson, pitrou, steven.daprano |
| 2012年08月03日 19:41:48 | skrah | set | messageid: <1344022908.17.0.617770348728.issue15544@psf.upfronthosting.co.za> |
| 2012年08月03日 19:41:47 | skrah | link | issue15544 messages |
| 2012年08月03日 19:41:46 | skrah | create |
|