Re: Understanding bytecode arguments: 1 byte versus 2 bytes

2020-01-06 Thread Chris Angelico
On Tue, Jan 7, 2020 at 5:01 PM wrote: > > I'm trying to understand the difference in disassemblies with 3.6+ versus > older versions of CPython. It looks like the basic opcodes like LOAD_FAST are > 3 bytes in pre-3.6 versions, but 2 bytes in 3.6+. I read online somewhere > that there was a chan

Understanding bytecode arguments: 1 byte versus 2 bytes

2020-01-06 Thread adam . preble
I'm trying to understand the difference in disassemblies with 3.6+ versus older versions of CPython. It looks like the basic opcodes like LOAD_FAST are 3 bytes in pre-3.6 versions, but 2 bytes in 3.6+. I read online somewhere that there was a change to the argument sizes in 3.6: it became 2 byte