Graham Lyons · May 2, 2013
Investigating Local Variable Scope in Python with the ‘dis’ Module
0Sign in to vote or save
This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Compared to something like Javascript, scoping in Python is pretty easy to follow. However, I found a situation recently which was confusing at first glance until I examined the Python byte code using the dis module (“dis - Disassembler of Python byte code into mnemonics”, from the help documentation).
Read on /article/investigating-local-variable-scope-in-python-with-the-dis-module ↗
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.