Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 944324d

Browse files
simon-king-jenaMatthias Koeppe
authored and
Matthias Koeppe
committedJul 8, 2020
Fix the new doctest

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/sage/structure/parent.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
283283
....: return self.parent()(self.n+other.n)
284284
....: def _lmul_(self, other):
285285
....: return self.parent().element_class(self.parent(),self.n*other)
286+
287+
The following is a trick that is needed in doctests but not in
288+
interactive sessions::
289+
290+
sage: import __main__
291+
sage: __main__.E = E
286292
sage: cython('''
287293
....: from __main__ import E
288294
....: from sage.structure.parent cimport Parent

0 commit comments

Comments
 (0)
This repository has been archived.