@@ -23,7 +23,7 @@ The class inheritance hierarchy is:
2323
2424 - :class:`NoetherianRing` (deprecated and essentially removed)
2525 - :class:`CommutativeAlgebra` (deprecated and essentially removed)
26- - :class:`IntegralDomain` (deprecated)
26+ - :class:`IntegralDomain` (deprecated and essentially removed )
2727
2828 - :class:`DedekindDomain` (deprecated and essentially removed)
2929 - :class:`PrincipalIdealDomain` (deprecated and essentially removed)
@@ -954,50 +954,11 @@ cdef class CommutativeRing(Ring):
954954
955955
956956cdef class IntegralDomain(CommutativeRing):
957- """
958- Generic integral domain class.
959-
960- This class is deprecated. Please use the
961- :class:`sage.categories.integral_domains.IntegralDomains`
962- category instead.
963- """
964957 _default_category = IntegralDomains()
965958
966- def __init__ (self , base_ring , names = None , normalize = True , category = None ):
967- """
968- Initialize ``self``.
969-
970- INPUT:
971-
972- - ``category`` -- (default: ``None``) a category, or ``None``
973-
974- This method is used by all the abstract subclasses of
975- :class:`IntegralDomain`, like :class:`Field`, ... in order to
976- avoid cascade calls Field.__init__ ->
977- IntegralDomain.__init__ ->
978- ...
979-
980- EXAMPLES::
981-
982- sage: F = IntegralDomain(QQ)
983- sage: F.category()
984- Category of integral domains
985-
986- sage: F = Field(QQ)
987- sage: F.category()
988- Category of fields
989-
990- The default value for the category is specified by the class
991- attribute ``default_category``::
992-
993- sage: IntegralDomain._default_category
994- Category of integral domains
995-
996- sage: Field._default_category
997- Category of fields
998- """
999- CommutativeRing.__init__ (self , base_ring, names = names, normalize = normalize,
1000- category = category)
959+ def __init__ (self , *args , **kwds ):
960+ deprecation(37234 , " use the category IntegralDomains" )
961+ super ().__init__(* args, ** kwds)
1001962
1002963
1003964cdef class NoetherianRing(CommutativeRing):
0 commit comments