#15289: Implement indexed monoids
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.3
Component: algebra | Resolution:
Keywords: days54 | Merged in:
Authors: Travis Scrimshaw | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/monoids/15289-indexed | 1ff1a0483f5e61959a432371b701f593a5dee599
Dependencies: #15309 #15169 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by tscrim):
Replying to [comment:39 nthiery]:
> Replying to [comment:38 tscrim]:
> > The `FreeMonoid` in the global namespace must be the `UniqueFactory`
instance for the old pickles to work,
>
> Yes. But this UniqueFactory instance can probably be a fake one and just
act as a delegator
> to whichever new class now implements `FreeMonoid`.
So do you mean doing something like this:
{{{#!python
class DummyFactory(UniqueFactory):
def __call__(self, *args, **kwds):
return factory_function(*args, **kwds)
def get_object(self, the, ..., args):
return OriginalFactoryInstance.get_object(the, ..., args)
}}}
and `DummyFactory` would become the object in the global namespace?
--
Ticket URL: <http://trac.sagemath.org/ticket/15289#comment:40>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.