Message170951
Given that
>>> 1.0**float('inf'), 1.0**float('-inf')
(1.0, 1.0)
works,
>>> (1.0+0j)**(float('inf') + 0j)
Traceback ...
ZeroDivisionError: 0.0 to a negative or complex power
(and same for ('-inf') seems like a clear bug in raising an exception, let alone a clearly wrong exception. Clarification of murky cases, if it changes behavior, might be an enhancement. |
|
Date |
User |
Action |
Args |
2012-09-22 02:14:07 | terry.reedy | set | recipients:
+ terry.reedy, mark.dickinson, alex, serhiy.storchaka, mattip |
2012-09-22 02:14:07 | terry.reedy | set | messageid: <1348280047.46.0.136556768723.issue15996@psf.upfronthosting.co.za> |
2012-09-22 02:14:06 | terry.reedy | link | issue15996 messages |
2012-09-22 02:14:06 | terry.reedy | create | |
|