Scopes

dude at deletia.com dude at deletia.com
Mon Feb 4 20:29:03 EST 2002


Hi all,

I've been learning C++ and have been turned onto Python

but the quesiton i have is

What is the advantage of pythons nested scope rules over c++ rules.

If I read correctly

If func B() has Func A() as its parent, then Func A() has access (can see)
all of func B()'s variable.

I am not sure of the advantage here, and would appreciate a little help

Thanks,

G







More information about the Python-list mailing list