Tim Peters <t...@python.org> added the comment: 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). ---------- nosy: +tim.peters _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32171> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com