Comment

Comment by __s

Indeed, a patch I created in 2010 for the peepholer to optimize 'a,b=b,a' was rejected with one particular reason being "changing order of execution starts to venture into territory that we've stayed away from (on purpose)." https://bugs.python.org/issue10648

Not that I disagree with the patch being rejected, only that this is an example of the compiler's philosophy

parent __s 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton