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 tim.peters
Recipients mark.dickinson, pdenis, tim.peters
Date 2017-11-29.21:45:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511991932.07.0.213398074469.issue32171@psf.upfronthosting.co.za>
In-reply-to
Content
As a comment in the referenced patch says, the intent of the patch was to make behavior match the C99 spec.  Among other things, C99's annex F (section F.9.4.4 "The pow functions") says:

"""
— pow(−∞, y) returns −0 for y an odd integer < 0.
— pow(−∞, y) returns +0 for y < 0 and not an odd integer.
— pow(−∞, y) returns −∞ for y an odd integer > 0.
— pow(−∞, y) returns +∞ for y > 0 and not an odd integer.
"""

So the case you show is doing what the standard specifies, under the last of those (y=0.5, which is > 0 and not an odd integer).
History
Date User Action Args
2017-11-29 21:45:32tim.peterssetrecipients: + tim.peters, mark.dickinson, pdenis
2017-11-29 21:45:32tim.peterssetmessageid: <1511991932.07.0.213398074469.issue32171@psf.upfronthosting.co.za>
2017-11-29 21:45:32tim.peterslinkissue32171 messages
2017-11-29 21:45:32tim.peterscreate