scope, function, mutable

Duncan Booth duncan.booth at invalid.invalid
Tue Dec 4 13:01:36 CET 2012

Thomas Bach <thbach at> wrote:

> Put that code in e.g. and run
> python -m pdb
> 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, paste the code into the web page 
and step through it.

Or even just go to to have it pre-populated with 
this code sample.

Duncan Booth

More information about the Python-list mailing list