def wrapper(): wrapper.initial = 1 def increase_initial(n): # Increase attribute of wrapper function wrapper.initial += n increase_initial(10) print wrapper.initial # Call wrapper: wrapper()
Standard input is empty
11
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!