R. David Murray added the comment: If I remember correctly, the exceptions adhere to the standard because it gives the option of "signaling" in those cases (but in any case it is the behavior we want).
0.5 is a float, so x**.5 is not the square root. >>> math.sqrt(-0.0) -0.0 I'm closing this but nosying Mark Dickinson, who will correct me if I got anything wrong :) ---------- nosy: +mark.dickinson, r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30933> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com