[Tutor] nested functions [differentation / C++ comparision]

Paul Sidorsky paulsid@shaw.ca
Wed, 10 Apr 2002 16:21:22 -0600


Kirby Urner wrote:

> 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.

Thanks, that fixed it.  I'd forgotten about that bug.  

Cool example, Danny!

-- 
======================================================================
Paul Sidorsky                                          Calgary, Canada
paulsid@shaw.ca                        http://members.shaw.ca/paulsid/