Theory Flashcards
1
Q
Bytecode
A
Python source code is compiled into bytecode, the internal representation of a Python program in the CPython interpreter. Bytecode is also cached in .pyc files. Bytecode runs on a virtual machine
2
Q
Class Definition Scope
A
Python creates a temporary namespace for the class to store class-level variables
unbound local variables are looked up in the global namespace