Ticket #5991 (closed enhancement: fixed)
[with patch, positive review] Add a standard constructor for dynamic classes
| Reported by: | nthiery | Owned by: | nthiery |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.2 |
| Component: | misc | Keywords: | dynamic classes, pickling, unique representation |
| Cc: | sage-combinat, saliola, roed | Author(s): | Nicolas M. Thiéry |
| Report Upstream: | Reviewer(s): | David Roe | |
| Merged in: | sage-4.2.alpha0 | Work issues: |
Description (last modified by robertwb) (diff)
This patch implements sage.structure.dynamic_class.dynamic_class, for constructing dynamically new python classes. The constructed classes can be pickled, and have unique representation.
The patch includes a discussion on the relevance of dynamic classes for Sage.
Depends on #5985 for pickling and #5120.
Used by the upcoming category framework #5891, (and sage-words?)
Issue: is sage.structure.dynamic_class.dynamic_class the natural location for this?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

