Skip to content

Commit

Permalink
Removed tab characters and some very minor review tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Jan 30, 2014
1 parent dc7f187 commit 7cdeebb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/doc/en/thematic_tutorials/tutorial-objects-and-classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ Some particular actions modify the data structure of ``el``::
sage: type(e)
<type 'sage.rings.integer.Integer'>
sage: e.__dict__
dict_proxy({'__module__': 'sage.categories.euclidean_domains',
'__doc__': None, '_reduction': (<built-in function getattr>, (Category
of euclidean domains, 'element_class')), 'gcd':
<sage.structure.element.NamedBinopMethod object at 0x...>,
'_sage_src_lines_': <staticmethod object at 0x...>})
dict_proxy({'__module__': 'sage.categories.euclidean_domains',
'__doc__': None, '_reduction': (<built-in function getattr>, (Category
of euclidean domains, 'element_class')), 'gcd':
<sage.structure.element.NamedBinopMethod object at 0x...>,
'_sage_src_lines_': <staticmethod object at 0x...>})
sage: e.__dict__.keys()
['__module__', '__doc__', '_reduction', 'gcd', '_sage_src_lines_']
['__module__', '__doc__', '_reduction', 'gcd', '_sage_src_lines_']

sage: id4 = SymmetricGroup(4).one()
sage: type(id4)
Expand Down
9 changes: 5 additions & 4 deletions src/sage/categories/euclidean_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ def gcd(self, other):
INPUT:
- ``other`` -- an element in the same ring as ``self``
- ``other`` -- an element in the same ring as ``self``
ALGORITHM:
Algorithm 3.2.1 in [Coh1996].
Algorithm 3.2.1 in [Coh1996]_.
REFERENCES:
.. [Coh1996] Henri Cohen. A Course in Computational Algebraic Number Theory. Springer, 1996.
.. [Coh1996] Henri Cohen. *A Course in Computational Algebraic
Number Theory*. Springer, 1996.
EXAMPLES::
sage: EuclideanDomains().ElementMethods().gcd(6,4)
2
"""
A = self
B = other
Expand All @@ -85,3 +85,4 @@ def gcd(self, other):
A = B
B = R
return A

2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/polynomial_element_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def gcd(self, other):
INPUT:
- ``other`` -- a polynomial defined over the same ring as ``self``
- ``other`` -- a polynomial defined over the same ring as ``self``
EXAMPLES::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ cdef class Polynomial_dense_mod_p(Polynomial_dense_mod_n):
INPUT:
- ``other`` -- a polynomial defined over the same ring as ``self``
- ``other`` -- a polynomial defined over the same ring as ``self``
EXAMPLES::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/rational.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ from sage.libs.pari.pari_instance cimport PariInstance
from integer_ring import ZZ

from sage.structure.element cimport Element, RingElement, ModuleElement
from sage.structure.element import bin_op, coerce_binop
from sage.structure.element import bin_op
from sage.categories.morphism cimport Morphism
from sage.categories.map cimport Map

Expand Down

0 comments on commit 7cdeebb

Please sign in to comment.