-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to (un)pickle class with abc.ABCMeta metaclass (python 2.7) #103
Comments
This probably broke with #102, ping @ssanderson |
@llllllllll I think this was broken before #102. I tried rolling back and hit a RecursionError with the following test: def test_abc(self):
class AbstractClass(metaclass=abc.ABCMeta):
pass
result = pickle_depickle(AbstractClass()) |
The root issue here is actually that ABCMeta uses WeakSet for caching. Should be fixed by #104. |
@AmatanHead I can't reproduce the exact error from your initial post, but ABCMeta instances generally seem to be working on #104 if you want to give it a try. |
Wow! That was blazingly fast and it works! Thanks a lot! |
Hello!
The current code from the master branch fails to work with classes that have the
abc.ABCMeta
metaclass.MWE:
With python 2.7.3 this yields:
With python 2.7.13:
The text was updated successfully, but these errors were encountered: