-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Support for pickle and copy #94
Comments
I don't have my computer available so I can't test it, but it seems like pickling for this is already supported since the trait values are stored in |
@rmorshea Oh of course. If a subclass overrides setstate and getstate, they will have to pickle |
@NeilGirdhar deleted old comment (couldn't check to see if However, checking for |
@SylvainCorlay @jasongrout |
I think we can close this until someone else requests TraitType specific get/setstate methods |
Has there been any thought about supporting Python pickling and copying? In other words, implementing
__setstate__
and__getstate__
on theInstance
type?I did something like this:
after which of course
pickle
andcopy
operations save and reload the state of traits automatically.The text was updated successfully, but these errors were encountered: