summaryrefslogtreecommitdiffstats
path: root/src/sage
diff options
context:
space:
mode:
authorJeroen Demeyer <jdemeyer@cage.ugent.be>2017-05-30 10:53:27 +0200
committerJeroen Demeyer <jdemeyer@cage.ugent.be>2017-05-30 16:56:43 +0200
commit256bf191ab0472303bb11e105a246106e894c4ec (patch)
tree403595c9e81ca2743d624d319cc6975a9adc70ee /src/sage
parentUpdated SageMath version to 8.0.beta8 (diff)
Move richcmp stuff to new file richcmp.pyx
Diffstat (limited to 'src/sage')
-rw-r--r--src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py4
-rw-r--r--src/sage/algebras/free_algebra_element.py2
-rw-r--r--src/sage/algebras/free_algebra_quotient_element.py2
-rw-r--r--src/sage/algebras/lie_algebras/lie_algebra_element.pyx2
-rw-r--r--src/sage/algebras/weyl_algebra.py2
-rw-r--r--src/sage/categories/morphism.pyx2
-rw-r--r--src/sage/combinat/alternating_sign_matrix.py2
-rw-r--r--src/sage/combinat/constellation.py22
-rw-r--r--src/sage/combinat/crystals/affine.py2
-rw-r--r--src/sage/combinat/crystals/affinization.py2
-rw-r--r--src/sage/combinat/crystals/alcove_path.py2
-rw-r--r--src/sage/combinat/crystals/fast_crystals.py2
-rw-r--r--src/sage/combinat/crystals/pbw_crystal.py2
-rw-r--r--src/sage/combinat/crystals/subcrystal.py2
-rw-r--r--src/sage/combinat/fully_packed_loop.py2
-rw-r--r--src/sage/combinat/interval_posets.py2
-rw-r--r--src/sage/combinat/rigged_configurations/kleber_tree.py2
-rw-r--r--src/sage/combinat/root_system/weyl_group.py2
-rw-r--r--src/sage/combinat/words/word_char.pyx2
-rw-r--r--src/sage/crypto/mq/sr.py2
-rw-r--r--src/sage/data_structures/bounded_integer_sequences.pyx2
-rw-r--r--src/sage/ext/fast_eval.pyx2
-rw-r--r--src/sage/geometry/hyperbolic_space/hyperbolic_point.py2
-rw-r--r--src/sage/geometry/linear_expression.py2
-rw-r--r--src/sage/geometry/newton_polygon.py2
-rw-r--r--src/sage/geometry/point_collection.pyx2
-rw-r--r--src/sage/geometry/toric_lattice_element.pyx2
-rw-r--r--src/sage/groups/braid.py2
-rw-r--r--src/sage/groups/libgap_wrapper.pyx2
-rw-r--r--src/sage/groups/matrix_gps/group_element.pyx2
-rw-r--r--src/sage/groups/perm_gps/permgroup_element.pyx2
-rw-r--r--src/sage/homology/hochschild_complex.py2
-rw-r--r--src/sage/libs/singular/function.pyx3
-rw-r--r--src/sage/libs/singular/groebner_strategy.pyx2
-rw-r--r--src/sage/matrix/matrix_dense.pyx2
-rw-r--r--src/sage/matrix/matrix_sparse.pyx2
-rw-r--r--src/sage/misc/constant_function.pyx14
-rw-r--r--src/sage/modular/arithgroup/arithgroup_element.pyx2
-rw-r--r--src/sage/modular/arithgroup/farey_symbol.pyx2
-rw-r--r--src/sage/modular/btquotients/pautomorphicform.py2
-rw-r--r--src/sage/modular/cusps.py2
-rw-r--r--src/sage/modular/cusps_nf.py2
-rw-r--r--src/sage/modular/dirichlet.py2
-rw-r--r--src/sage/modular/hecke/element.py2
-rw-r--r--src/sage/modular/modform_hecketriangle/graded_ring_element.py2
-rw-r--r--src/sage/modular/modsym/manin_symbol.pyx2
-rw-r--r--src/sage/modular/pollack_stevens/dist.pyx4
-rw-r--r--src/sage/modular/pollack_stevens/modsym.py2
-rw-r--r--src/sage/modular/pollack_stevens/sigma0.py2
-rw-r--r--src/sage/modules/fg_pid/fgp_element.py2
-rw-r--r--src/sage/modules/free_module_element.pyx2
-rw-r--r--src/sage/modules/with_basis/indexed_element.pyx2
-rw-r--r--src/sage/modules/with_basis/morphism.py2
-rw-r--r--src/sage/monoids/free_abelian_monoid_element.py2
-rw-r--r--src/sage/monoids/indexed_free_monoid.py2
-rw-r--r--src/sage/monoids/string_monoid_element.py2
-rw-r--r--src/sage/quivers/algebra_elements.pxi2
-rw-r--r--src/sage/quivers/algebra_elements.pyx2
-rw-r--r--src/sage/quivers/paths.pyx2
-rw-r--r--src/sage/rings/asymptotic/misc.py2
-rw-r--r--src/sage/rings/complex_double.pyx2
-rw-r--r--src/sage/rings/complex_mpc.pyx2
-rw-r--r--src/sage/rings/finite_rings/element_givaro.pyx3
-rw-r--r--src/sage/rings/finite_rings/element_ntl_gf2e.pyx5
-rw-r--r--src/sage/rings/finite_rings/residue_field.pyx2
-rw-r--r--src/sage/rings/fraction_field_element.pyx2
-rw-r--r--src/sage/rings/function_field/function_field_element.pyx2
-rw-r--r--src/sage/rings/integer.pyx3
-rw-r--r--src/sage/rings/integer_ring.pyx2
-rw-r--r--src/sage/rings/laurent_series_ring_element.pyx2
-rw-r--r--src/sage/rings/morphism.pyx4
-rw-r--r--src/sage/rings/multi_power_series_ring_element.py2
-rw-r--r--src/sage/rings/number_field/number_field_element.pyx2
-rw-r--r--src/sage/rings/number_field/number_field_element_quadratic.pyx2
-rw-r--r--src/sage/rings/padics/morphism.pyx4
-rw-r--r--src/sage/rings/padics/padic_base_leaves.py2
-rw-r--r--src/sage/rings/padics/padic_extension_generic.py2
-rw-r--r--src/sage/rings/padics/padic_printing.pyx2
-rw-r--r--src/sage/rings/padics/pow_computer.pyx2
-rw-r--r--src/sage/rings/padics/pow_computer_flint.pyx2
-rw-r--r--src/sage/rings/polynomial/laurent_polynomial.pyx2
-rw-r--r--src/sage/rings/polynomial/multi_polynomial_libsingular.pyx2
-rw-r--r--src/sage/rings/polynomial/multi_polynomial_ring_generic.pyx2
-rw-r--r--src/sage/rings/polynomial/pbori.pyx2
-rw-r--r--src/sage/rings/polynomial/polynomial_element.pyx2
-rw-r--r--src/sage/rings/polynomial/polynomial_element_generic.py4
-rw-r--r--src/sage/rings/polynomial/polynomial_template.pxi2
-rw-r--r--src/sage/rings/polynomial/symmetric_reduction.pyx2
-rw-r--r--src/sage/rings/power_series_ring_element.pyx2
-rw-r--r--src/sage/rings/qqbar.py9
-rw-r--r--src/sage/rings/real_double.pyx2
-rw-r--r--src/sage/rings/real_lazy.pyx2
-rw-r--r--src/sage/rings/real_mpfi.pyx2
-rw-r--r--src/sage/rings/real_mpfr.pyx2
-rw-r--r--src/sage/rings/universal_cyclotomic_field.py2
-rw-r--r--src/sage/schemes/elliptic_curves/ell_curve_isogeny.py2
-rw-r--r--src/sage/schemes/elliptic_curves/ell_point.py2
-rw-r--r--src/sage/schemes/generic/morphism.py2
-rw-r--r--src/sage/schemes/generic/point.py2
-rw-r--r--src/sage/schemes/product_projective/point.py2
-rw-r--r--src/sage/schemes/projective/projective_point.py2
-rw-r--r--src/sage/schemes/toric/morphism.py2
-rw-r--r--src/sage/structure/coerce.pyx5
-rw-r--r--src/sage/structure/element.pyx4
-rw-r--r--src/sage/structure/list_clone.pyx2
-rw-r--r--src/sage/structure/parent.pyx3
-rw-r--r--src/sage/structure/richcmp.pxd146
-rw-r--r--src/sage/structure/richcmp.pyx89
-rw-r--r--src/sage/structure/sage_object.pxd159
-rw-r--r--src/sage/structure/sage_object.pyx65
-rw-r--r--src/sage/symbolic/function.pyx2
-rw-r--r--src/sage/tests/stl_vector.pyx2
112 files changed, 437 insertions, 299 deletions
diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py
index 52969d5..f2541a0 100644
--- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py
+++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py
@@ -24,8 +24,8 @@ from sage.structure.sage_object import SageObject
from sage.misc.cachefunc import cached_method
from functools import reduce
-from sage.structure.sage_object import (op_LT, op_LE, op_EQ, op_NE,
- op_GT, op_GE)
+from sage.structure.richcmp import (op_LT, op_LE, op_EQ, op_NE,
+ op_GT, op_GE)
class FiniteDimensionalAlgebraIdeal(Ideal_generic):
diff --git a/src/sage/algebras/free_algebra_element.py b/src/sage/algebras/free_algebra_element.py
index b719b53..9aaa39f 100644
--- a/src/sage/algebras/free_algebra_element.py
+++ b/src/sage/algebras/free_algebra_element.py
@@ -40,7 +40,7 @@ from sage.monoids.free_monoid_element import FreeMonoidElement
from sage.modules.with_basis.indexed_element import IndexedFreeModuleElement
from sage.combinat.free_module import CombinatorialFreeModule
from sage.structure.element import AlgebraElement
-from sage.structure.sage_object import richcmp
+from sage.structure.richcmp import richcmp
import six
diff --git a/src/sage/algebras/free_algebra_quotient_element.py b/src/sage/algebras/free_algebra_quotient_element.py
index 441670d..a44d42e 100644
--- a/src/sage/algebras/free_algebra_quotient_element.py
+++ b/src/sage/algebras/free_algebra_quotient_element.py
@@ -26,7 +26,7 @@ from six import integer_types
from sage.misc.misc import repr_lincomb
from sage.structure.element import RingElement, AlgebraElement
from sage.structure.parent_gens import localvars
-from sage.structure.sage_object import richcmp
+from sage.structure.richcmp import richcmp
from sage.rings.integer import Integer
from sage.modules.free_module_element import FreeModuleElement
from sage.monoids.free_monoid_element import FreeMonoidElement
diff --git a/src/sage/algebras/lie_algebras/lie_algebra_element.pyx b/src/sage/algebras/lie_algebras/lie_algebra_element.pyx
index 1162172..7f7a0ec 100644
--- a/src/sage/algebras/lie_algebras/lie_algebra_element.pyx
+++ b/src/sage/algebras/lie_algebras/lie_algebra_element.pyx
@@ -24,7 +24,7 @@ from sage.misc.misc import repr_lincomb
from sage.combinat.free_module import CombinatorialFreeModule
from sage.structure.element cimport have_same_parent, coercion_model, parent
from sage.structure.element_wrapper cimport ElementWrapper
-from sage.structure.sage_object cimport richcmp
+from sage.structure.richcmp cimport richcmp
from sage.data_structures.blas_dict cimport axpy, negate, scal
# TODO: Inherit from IndexedFreeModuleElement and make cdef once #22632 is merged
diff --git a/src/sage/algebras/weyl_algebra.py b/src/sage/algebras/weyl_algebra.py
index daafa6d..da118c0 100644
--- a/src/sage/algebras/weyl_algebra.py
+++ b/src/sage/algebras/weyl_algebra.py
@@ -18,7 +18,7 @@ AUTHORS:
from sage.misc.cachefunc import cached_method
from sage.misc.latex import latex
-from sage.structure.sage_object import richcmp
+from sage.structure.richcmp import richcmp
from sage.structure.element import AlgebraElement
from sage.structure.unique_representation import UniqueRepresentation
from copy import copy
diff --git a/src/sage/categories/morphism.pyx b/src/sage/categories/morphism.pyx
index eae6483..c449ba4 100644
--- a/src/sage/categories/morphism.pyx
+++ b/src/sage/categories/morphism.pyx
@@ -29,7 +29,7 @@ import operator
import homset
from sage.structure.element cimport Element
-from sage.structure.sage_object cimport richcmp_not_equal, rich_to_bool
+from sage.structure.richcmp cimport richcmp_not_equal, rich_to_bool
def is_Morphism(x):
return isinstance(x, Morphism)
diff --git a/src/sage/combinat/alternating_sign_matrix.py b/src/sage/combinat/alternating_sign_matrix.py
index 3cafa2d..7261164 100644
--- a/src/sage/combinat/alternating_sign_matrix.py
+++ b/src/sage/combinat/alternating_sign_matrix.py
@@ -40,7 +40,7 @@ from sage.misc.all import prod
from sage.structure.unique_representation import UniqueRepresentation
from sage.structure.parent import Parent
from sage.structure.element import Element
-from sage.structure.sage_object import op_NE, richcmp
+from sage.structure.richcmp import op_NE, richcmp
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
from sage.matrix.matrix_space import MatrixSpace
from sage.matrix.constructor import matrix
diff --git a/src/sage/combinat/constellation.py b/src/sage/combinat/constellation.py
index fc45e5e..b7e5c79 100644
--- a/src/sage/combinat/constellation.py
+++ b/src/sage/combinat/constellation.py
@@ -41,14 +41,18 @@ REFERENCES:
.. [LaZv04] S. Lando and A. Zvonkine, "Graphs on surfaces and their
applications", Springer-Verlag, 2004.
"""
-# *************************************************************************
-# Copyright (C) 2015-2016 Vincent Delecroix <20100.delecroix@gmail.com>
-# Frederic Chapoton <fchapoton2@gmail.com>
-#
-# Distributed under the terms of the GNU General Public License (GPL)
+
+#*****************************************************************************
+# Copyright (C) 2015-2016 Vincent Delecroix <20100.delecroix@gmail.com>
+# Frederic Chapoton <fchapoton2@gmail.com>
#
-# The full text of the GPL is available at http://www.gnu.org/licenses/
-# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+# http://www.gnu.org/licenses/
+#*****************************************************************************
+
from six.moves import range
from six import integer_types
@@ -56,8 +60,8 @@ from sage.structure.element import parent
from sage.structure.parent import Parent
from sage.structure.element import Element
from sage.structure.unique_representation import UniqueRepresentation
-from sage.structure.sage_object import (op_NE, op_EQ, richcmp_not_equal,
- rich_to_bool)
+from sage.structure.richcmp import (op_NE, op_EQ, richcmp_not_equal,
+ rich_to_bool)
from sage.groups.perm_gps.permgroup_named import SymmetricGroup
from sage.rings.integer import Integer
diff --git a/src/sage/combinat/crystals/affine.py b/src/sage/combinat/crystals/affine.py
index 286784f..ff18f28 100644
--- a/src/sage/combinat/crystals/affine.py
+++ b/src/sage/combinat/crystals/affine.py
@@ -19,7 +19,7 @@ from sage.structure.parent import Parent
from sage.structure.unique_representation import UniqueRepresentation
from sage.structure.element_wrapper import ElementWrapper
from sage.combinat.root_system.cartan_type import CartanType
-from sage.structure.sage_object import richcmp
+from sage.structure.richcmp import richcmp
class AffineCrystalFromClassical(UniqueRepresentation, Parent):
diff --git a/src/sage/combinat/crystals/affin