John Hampton added the comment:
Ok, but perhaps in order to aviod confusion the documentation could be changed
so that the examples are complete or have an additional new line as needed.
Well, they are complete. And it's only an issue with the interpreter. If you
were to copy and past
John Hampton added the comment:
The documentation is correct. The problem that you seem to be having are due
to copy and pasting in the interpreter.
The source of you first error is that after you copy
>>> def scope_test():
... def do_local():
... spam = "local spa