Mark Dickinson added the comment:

Gah!  Peephole optimizer!  When you do a timeit for '3.14 ** 0.5', you're just 
evaluating the time to retrieve a constant!

In general, `**` is going to be both slower *and* less accurate than math.sqrt. 
 Please don't make this change!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24059>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to