Message175642
[Broken out of the issue 16469 discussion about infinity -> Fraction and nan -> Fraction conversions.]
Conversions from float('inf') or Decimal('inf') to int (or Fraction) currently generate an OverflowError, while conversions from nan give a ValueError. I'm of the opinion that it would make more sense for both conversions to generate ValueError, and I'm opening this issue to track discussion for that. There's also a reasonable case that the behaviour is fine as it is, and there's little to be gained by changing it. |
|
Date |
User |
Action |
Args |
2012-11-15 21:17:12 | mark.dickinson | set | recipients:
+ mark.dickinson |
2012-11-15 21:17:12 | mark.dickinson | set | messageid: <1353014232.58.0.902552345028.issue16483@psf.upfronthosting.co.za> |
2012-11-15 21:17:12 | mark.dickinson | link | issue16483 messages |
2012-11-15 21:17:12 | mark.dickinson | create | |
|