in reply to Re: Evolution of python
in thread Evolution of python

Scoping rules in python are very different to Perl (and extremely confusing for me*)!

And to make things worse they changed between Py2 and Py3

There are nothing like blocks, a function (def or lambda) is the smallest lexical unit.

A variable on the class level becomes an attribute.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

*) Stack overflow has some discussions on that and you'd be surprised how often "experts" contradict themselves.