On Tuesday 04 December 2012 09:24 AM, Anand Chitipothu wrote:
Python scoping rules when it comes to classes are so confusing.
Can you guess what would be output of the following program?
x = 1
class Foo:
print(x)
Prints the global x
x = x + 1
print(x)
Prints the local x,
Sorry to note that no response/solution from the python experts. Is it so
complicated or difficult to solve the problem for the Python experts?
With regards,
-sriranga(79yrs).
On Sun, Dec 2, 2012 at 4:30 PM, bangpypers-requ...@python.org wrote:
Send BangPypers mailing list submissions to