[issue33682] Optimize the bytecode for float(0) ?

Stéphane Wirtel report at bugs.python.org
Tue May 29 09:01:15 EDT 2018


Stéphane Wirtel <stephane at wirtel.be> added the comment:

@Victor, Thanks and you are right, int and float are not keywords of Python, in this case, we can override them.

@Steven, in fact, the optimization was, when you see float/int (if they are keywords), don't call the function via the bytecode.

Thanks and I close this issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33682>
_______________________________________


More information about the Python-bugs-list mailing list