#12205: rewrite conway polynomial spkg and code in Sage library to not use ZODB
-----------------------------+----------------------------------------------
Reporter: was | Owner: was
Type: task | Status: new
Priority: major | Milestone: sage-5.6
Component: databases | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-----------------------------+----------------------------------------------
Comment (by nbruin):
Replying to [comment:11 fbissey]:
> In the end I am hitting a brick wall here. Possibly due to my lack of
python skills and my will to only have minimal changes in conway.py.
I don't think `_init` is a magic python method that automatically gets
called. It may well be part of a protocol involved in
sage.databases.db.Database. However, when you want to implement this as
inheriting from `dict`, you'll have to call `_init` yourself in
`__init__`, or better: just make `_init` part of it.
To make the dictionary read-only, you may want to override the dictionary
modification methods too. Plus you probably want to amend pickling
(interesting question: How should this pickle? Should it write its content
to a file or should it pickle to "initialize ConwayPolynomials() for
unpickling"?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12205#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.