#14912: UniqueRepresentation tutorial could use more love
--------------------------------------------+------------------------------
Reporter: darij | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: documentation | Resolution:
Keywords: documentation, structure | Merged in:
Authors: Simon King | Reviewers: Darij Grinberg
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------------+------------------------------
Comment (by SimonKing):
Replying to [comment:31 chapoton]:
> beware of unvisible characters !
Indeed. The third patch introduces some blank space.
{{{
Notice that the objects created by the factory inherit neither from
the factory class, nor from the factory instance (which is not even a
class). In fact, they don't even know about the factory that created
them!
}}}
Apart from the blank space after the "!" (AFAIK, there is no blank space
''before'' "!", ":" and ";", in contrast to French), I am not happy with
the statement that the instances don't even know about the factory that
created them:
{{{
sage: F = GF(5)
sage: F._factory_data
(<class 'sage.rings.finite_rings.constructor.FiniteFieldFactory'>,
(5, 13, 'beta3'),
(5, None, None, 'modn', '{}', 5, 1, True),
{})
sage: _[0] is GF
True
}}}
This actually is how pickling is implemented (namely: By keeping a
reference to the creating factory, plus the arguments used to call the
factory).
--
Ticket URL: <http://trac.sagemath.org/ticket/14912#comment:32>
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.