Message318020
| Author | steven.daprano |
|---|---|
| Recipients | matrixise, steven.daprano, vstinner |
| Date | 2018-05-29.12:54:24 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1527598464.57.0.682650639539.issue33682@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-05-29 12:54:24 | steven.daprano | set | recipients: + steven.daprano, vstinner, matrixise |
| 2018-05-29 12:54:24 | steven.daprano | set | messageid: <1527598464.57.0.682650639539.issue33682@psf.upfronthosting.co.za> |
| 2018-05-29 12:54:24 | steven.daprano | link | issue33682 messages |
| 2018-05-29 12:54:24 | steven.daprano | create | |