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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly