Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

I'm sorry, it isn't clear what optimizations for float(X) and int(X) you are 
referring to.

I can only guess that you want to optimize:

    float(0)

to use LOAD_CONST 0.0 instead of calling the float() function. If that is what 
you want, we can't do that because float() may have been shadowed or replaced. 
Optimizing 1+1 is safe because it involves only literals and operators, no name 
look-ups.

If that is not what you want, please explain what optimization you are 
referring to.

----------
nosy: +steven.daprano

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

Reply via email to