Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythonCPython bytecode and disSingle-choice MCQ

In CPython 3.13, `obj.append(1)` disassembles to LOAD_ATTR with a 'NULL|self' marker followed by CALL, rather than the older LOAD_METHOD opcode. What is the purpose of pushing that extra NULL alongside the bound-method lookup?

import dis dis.dis('obj.append(1)')