6 ms·
How is Python able to constant-fold at bytecode compile-time like that? I thought operators were redefineable in Python? So could they be redefined next time yo
by chrisseaton 6y ago
How is Python able to constant-fold at bytecode compile-time like that? I thought operators were redefineable in Python? So could they be redefined next time you load the bytecode and the constant now invalid? Is that not the case?
- wizzwizz4 6y agoThey're not redefinable on the built-in types. (Well, they are, but not officially.)