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.
In reply to Re^2: Evolution of python
by LanX
in thread Evolution of python
by betmatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |