Hacker News new | ask | show | jobs
by zbentley 198 days 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.

1 comments

Sorry, I meant 10**50; HN formatting removed one asterisk
Ah, gotcha. Yep! Not constant-calculated at all!