Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Redefining nested function from other function overrides original nested function #861
Consider the following codes saved in
Running the codes in voc results in following outputs:
However, the intended outputs from Python 3.6 are:
The last write overwrites the first nested function.
One potential way to solve it would be generating class files for each nested function marked with enclosing function's name and instruct voc to look for the correct class file when invoking nested function.