#10963: More functorial constructions
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner: stumpc5
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.1
Component: categories | Resolution:
Keywords: days54 | Merged in:
Authors: Nicolas M. Thiéry | Reviewers: Simon King, Frédéric
Report Upstream: N/A | Chapoton
Branch: | Work issues:
public/ticket/10963 | Commit:
Dependencies: #11224, #8327, | 48dc0c06e567d07a70f1b45018f1e2a02cd434e7
#10193, #12895, #14516, #14722, | Stopgaps:
#13589, #14471, #15069, #15094, |
#11688, #13394, #15150, #15506 |
-------------------------------------+-------------------------------------
Comment (by nthiery):
Replying to [comment:357 SimonKing]:
> I think we ''should'' solve the problem now. Currently, I am running
tests for the "add `as_name` in 43 spots" approach.
>
> It would be a good idea (for maintainability) to have an assertion that
the lazily imported object in fact ends up in the class' dict.
>
> But where could such a test take place? What part of the code knows,
e.g., that `Groups` are known under the name `Inverse` to `Monoids`?
A natural spot is where I introduced the trick that forces the
replacement of the lazy import by the object itself: in
CategoryWithAxiom.__classget__.
But then the trick is no more complicated than the assertion test, and
the trick by itself solves the problem now. So honestly I don't see
why bother :-)
Cheers,
Nicolas
--
Ticket URL: <http://trac.sagemath.org/ticket/10963#comment:358>
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/groups/opt_out.