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 mattip
Recipients mark.dickinson, mattip
Date 2012-09-20.22:00:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
complex(1., 0.) ** complex(float('inf'), 0.) raises a ZeroDivisionError. In general, complex_power() needs to handle more corner cases. Barring a clear standard for pow() in C99, the documentation for pow 3 in glibc
seems solid for a start, however it only describes behaviour for float/double values.

Where would be an appropriate place to add tests? I propose adding a test-case file similar to cmath_testcases.txt (attached) and a test runner similar to
Date User Action Args
2012-09-20 22:00:28mattipsetrecipients: + mattip, mark.dickinson
2012-09-20 22:00:28mattipsetmessageid: <>
2012-09-20 22:00:27mattiplinkissue15996 messages
2012-09-20 22:00:27mattipcreate