2 ms·
> However, if you try `dis.dis('ATOMS_IN_THE_WORLD = 10*50')` you will get LOAD_CONST 10, LOAD_CONST 50... I do not get that, I get LOAD_CONST 500. Tested on:
by zbentley 11mo ago
> However, if you try `dis.dis('ATOMS_IN_THE_WORLD = 10*50')` you will get LOAD_CONST 10, LOAD_CONST 50...
I do not get that, I get LOAD_CONST 500.
Tested on: Python 3.9.3 MacOS (Apple provided), 3.13.3 (uv provided) MacOS and Linux, and 3.14.0 (uv provided) MacOS and Linux.
- manbitesdog 11mo agoSorry, I meant 10**50; HN formatting removed one asterisk
- zbentley 10mo agoAh, gotcha. Yep! Not constant-calculated at all!