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 terry.reedy
Recipients alex, mark.dickinson, mattip, serhiy.storchaka, terry.reedy
Date 2012-09-22.02:14:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Given that
>>> 1.0**float('inf'), 1.0**float('-inf')
(1.0, 1.0)


>>> (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:07terry.reedysetrecipients: + terry.reedy, mark.dickinson, alex, serhiy.storchaka, mattip
2012-09-22 02:14:07terry.reedysetmessageid: <>
2012-09-22 02:14:06terry.reedylinkissue15996 messages
2012-09-22 02:14:06terry.reedycreate