[issue45974] Using walrus produces different/unoptimized bytecode

2021-12-03 Thread Fatih Kilic
Fatih Kilic added the comment: Ah, I see. Thanks! -- ___ Python tracker <https://bugs.python.org/issue45974> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45974] Using walrus produces different/unoptimized bytecode

2021-12-03 Thread Fatih Kilic
New submission from Fatih Kilic : So, what I mean by unoptimized bytecode is, for example when you type `a = 10 * 10`, the resulting bytecode is the following: ``` LOAD_CONST 0 (100) STORE_NAME 0 (a) ... ``` However, when you type, `(a := 10 * 10) == None`, the resulting bytecode is the