scope, function, mutable
Duncan Booth
duncan.booth at invalid.invalid
Tue Dec 4 07:01:36 EST 2012
More information about the Python-list mailing list
Tue Dec 4 07:01:36 EST 2012
- Previous message (by thread): scope, function, mutable
- Next message (by thread): CSV out of range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Bach <thbach at students.uni-mainz.de> wrote: > Put that code in e.g. file.py and run > > python -m pdb file.py > > this will drop you off in the debugger. Step through your code line by > line (using ƒ ~sƒ T) and see how the function calls affect your list > (e.g. via ƒ ~print xƒ T/ƒ ~print tƒ T). If this confuses you furtherƒ > Ý Well, tell me that my autodidact methodology did not work out at all > and ask again. ;) For an example this simple an even better option is to go to http://www.pythontutor.com/visualize.html, paste the code into the web page and step through it. Or even just go to http://tinyurl.com/camh9cb to have it pre-populated with this code sample. -- Duncan Booth http://kupuguy.blogspot.com
- Previous message (by thread): scope, function, mutable
- Next message (by thread): CSV out of range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list