-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
implement a "decorator" to allow pickling nested classes #6110
Comments
Attachment: nested-pickles.patch.gz Reviewer patch, with demo of metaclass |
comment:2
Attachment: nested-pickles-reviewer.patch.gz I just uploaded a super patch (for sage 3.4.2) which:
|
comment:3
Perfect for 4.0.1. |
comment:4
Looks and works well for me. Lets get this pickle stuff in. |
Reviewer: Robert Bradshaw, Nicolas Thiery |
Merged: 4.0.2.alpha0 |
Author: Carl Witty, Nicolas Thiery |
Changed reviewer from Robert Bradshaw, Nicolas Thiery to Robert Bradshaw, Nicolas M. Thiéry |
Changed author from Carl Witty, Nicolas Thiery to Carl Witty, Nicolas M. Thiéry |
The nested_pickle decorator modifies nested classes to be picklable. (In Python 2.6 it should be usable as a decorator, although that hasn't been tested; Python 2.5 doesn't support class decorators, so you can't use that syntax in Sage until it upgrades.)
CC: @craigcitro
Component: misc
Author: Carl Witty, Nicolas M. Thiéry
Reviewer: Robert Bradshaw, Nicolas M. Thiéry
Merged: 4.0.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6110
The text was updated successfully, but these errors were encountered: