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 <1348178428.15.0.517718755216.issue15996@psf.upfronthosting.co.za>
In-reply-to
Content
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
http://www.kernel.org/doc/man-pages/online/pages/man3/pow.3.html
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 test_cmath.py
History
Date User Action Args
2012-09-20 22:00:28mattipsetrecipients: + mattip, mark.dickinson
2012-09-20 22:00:28mattipsetmessageid: <1348178428.15.0.517718755216.issue15996@psf.upfronthosting.co.za>
2012-09-20 22:00:27mattiplinkissue15996 messages
2012-09-20 22:00:27mattipcreate