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
Added closure related test cases #873
While all but one test cases failed because voc currently doesn't support closure in generator, class and method context yet, I want to highlight 1 particular test case which isn't addressed in voc's current closure creation logic. As pointed out by @freakboy3742 , consider the following:
CPython3 will print
As @freakboy3742 mentioned, current implementation of closure in voc may require some modifications /rework to allow closure to acquire the 'latest' value of closure variable.