[Tutor] nested functions [differentation / C++
comparision]
Kirby Urner
urnerk@qwest.net
Tue, 09 Apr 2002 22:21:16 -0700
>
>It wouldn't work in the interpreter directly (the SyntaxWarning
>becomes a SyntaxError).
There's a problem with importing nested scopes in
shell mode in IDLE in 2.1. Cut and paste the code
to a text file with
from __future__ import nested_scopes
at the top of the file. Save as danny.py or whatever
and import e.g.
from danny import diff
This will cause nested scopes to kick in and allow you
to use diff interactively.
Kirby