"code"
var=1
class CLASS:
def METHOD1:
def METHOD2:
var+=var
return var
METHOD2() #line8
return var
METHOD1() #line10
"end code"Q1: does class CLASS inherit var=0 from line1? Q2: does def METHOD1 inherit var=0 from line1? Q3: does def METHOD2 inherit var=0 from line1? Q3: does line8 return '2'? Q4: does line10 return '2\n2'? -- http://mail.python.org/mailman/listinfo/python-list
