Skip to content
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

Unpickling TableBundle fails due to __getattr__() implementation #110

Open
jfcorbett opened this issue Jul 14, 2021 · 0 comments
Open

Unpickling TableBundle fails due to __getattr__() implementation #110

jfcorbett opened this issue Jul 14, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@jfcorbett
Copy link
Member

jfcorbett commented Jul 14, 2021

According to docs, unpickling may call __getattr__(), and __init__() is not necessarily called.

This causes an infinite recursion when unpickling TableBundle: __getattr__() calls unique(), which asks for self._tables_named, which calls __getattr__("_tables_named") presumably because self._tables_named was never initialized in __init__().

Unfortunately this means that TableBundle cannot be pickled!

@jfcorbett jfcorbett added the bug Something isn't working label Jul 14, 2021
@guilhermebs guilhermebs added this to the Version 0.1 milestone Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants