Convert FileObjectClosend and cancel_wait_ex to classes
Instead of singleton instances. This is because exception objects are stateful on Python 3, so these singletons could potentially be keeping lots of extra state around. greenlet.throw() accepts either an instance or a class so this results in no extra internal changes.
Showing
Please register or sign in to comment