|
|
|
|
|
by PyComfy
3059 days ago
|
|
Naive interpretation of the bytecode (not even pre-decoded, just a switch statement).
And almost everything is resolved in the dynamic environment. for example, a = foo.bar(b)
is actually ldict = locals()
ldict['a'] = ldict['foo'].__getattribute__('bar')(ldict['b'])
|
|
So your code should be more like:
But this isn't a very good rendering of the thing because it doesn't show the many redundant reference count increment/decrement pairs every time you touch a variable.(Also, interpreter dispatch uses computed GOTOs instead of the plain switch on C compilers that support it.)