Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Attempting to polyfill the decorate() function #1702
#1671 did fix the test failures but the decorator in this case did not actually do anything as the lock was recreated for each function call and thus there was no lock.
This is an attempt to polyfill the
I honestly have no idea how to actually test this - one would need to get access to the local variables of the decorated function but
I tested this with print statements and it appears to work as intended.