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

Commit 0bdecde

Browse files
author
Release Manager
committed
Trac #28637: remove deprecated alias for algebraic dependency
from #22714 and some other little details elsewhere URL: https://trac.sagemath.org/28637 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw
2 parents 9486589 + 85f2c8d commit 0bdecde

File tree

5 files changed

+7
-33
lines changed

5 files changed

+7
-33
lines changed

src/sage/combinat/ribbon_tableau.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
from sage.combinat.skew_tableau import SkewTableau, SkewTableaux, SemistandardSkewTableaux
3030
from sage.combinat.tableau import Tableaux
3131
from sage.combinat.partition import Partition, _Partitions
32-
from sage.misc.superseded import deprecated_function_alias
3332
from . import permutation
3433
import functools
3534

src/sage/knots/gauss_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def recover_orientations(gauss):
7373
7474
- signed Gauss code
7575
76-
OUTPUT
76+
OUTPUT:
7777
7878
- word, a permutation of the (unsigned) Gauss code
7979
- list of positive (upwards) couplings in this word

src/sage/quivers/representation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
229229
To each vertex of a quiver there is associated a simple module, an
230230
indecomposable projective, and an indecomposable injective, and these can
231-
be created from the qQuiver::
231+
be created from the quiver::
232232
233233
sage: S = PQ.S(GF(3), 1)
234234
sage: I = PQ.I(QQ, 2)

src/sage/rings/complex_mpc.pyx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ from .complex_number cimport ComplexNumber
7878
from .complex_field import ComplexField_class
7979

8080
from sage.misc.randstate cimport randstate, current_randstate
81-
from sage.misc.superseded import deprecated_function_alias
8281
from .real_mpfr cimport RealField_class, RealNumber
8382
from .real_mpfr import mpfr_prec_min, mpfr_prec_max
8483
from sage.structure.richcmp cimport rich_to_bool, richcmp
@@ -1380,7 +1379,7 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
13801379
Return an irreducible polynomial of degree at most `n` which is
13811380
approximately satisfied by this complex number.
13821381
1383-
ALGORITHM: Uses the PARI C-library algdep command.
1382+
ALGORITHM: Uses the PARI C-library :pari:`algdep` command.
13841383
13851384
INPUT: Type ``algdep?`` at the top level prompt. All additional
13861385
parameters are passed onto the top-level algdep command.
@@ -1395,20 +1394,10 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
13951394
x^2 - x + 1
13961395
sage: p(z)
13971396
1.11022302462516e-16
1398-
1399-
TESTS::
1400-
1401-
sage: z.algebraic_dependancy(2)
1402-
doctest:...: DeprecationWarning: algebraic_dependancy is deprecated. Please use algebraic_dependency instead.
1403-
See http://trac.sagemath.org/22714 for details.
1404-
x^2 - x + 1
14051397
"""
14061398
from sage.arith.all import algdep
14071399
return algdep(self, n, **kwds)
14081400

1409-
# Former misspelling
1410-
algebraic_dependancy = deprecated_function_alias(22714, algebraic_dependency)
1411-
14121401
################################
14131402
# Basic Arithmetic
14141403
################################

src/sage/rings/complex_number.pyx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ from .complex_double cimport ComplexDoubleElement
3737
from .real_mpfr cimport RealNumber
3838

3939
import sage.misc.misc
40-
from sage.misc.superseded import deprecated_function_alias
4140
import sage.rings.integer as integer
4241
import sage.rings.infinity as infinity
4342

@@ -2430,7 +2429,7 @@ cdef class ComplexNumber(sage.structure.element.FieldElement):
24302429
Return an irreducible polynomial of degree at most `n` which is
24312430
approximately satisfied by this complex number.
24322431
2433-
ALGORITHM: Uses the PARI C-library algdep command.
2432+
ALGORITHM: Uses the PARI C-library :pari:`algdep` command.
24342433
24352434
INPUT: Type algdep? at the top level prompt. All additional
24362435
parameters are passed onto the top-level algdep command.
@@ -2444,27 +2443,15 @@ cdef class ComplexNumber(sage.structure.element.FieldElement):
24442443
x^2 - x + 1
24452444
sage: p(z)
24462445
1.11022302462516e-16
2447-
2448-
TESTS::
2449-
2450-
sage: z.algdep(2)
2451-
x^2 - x + 1
2452-
sage: z.algebraic_dependancy(2)
2453-
doctest:...: DeprecationWarning: algebraic_dependancy is deprecated. Please use algebraic_dependency instead.
2454-
See http://trac.sagemath.org/22714 for details.
2455-
x^2 - x + 1
24562446
"""
24572447
from sage.arith.all import algdep
24582448
return algdep(self, n, **kwds)
24592449

24602450
# Alias
24612451
algdep = algebraic_dependency
24622452

2463-
# Former misspelling
2464-
algebraic_dependancy = deprecated_function_alias(22714, algebraic_dependency)
2465-
24662453

2467-
def make_ComplexNumber0( fld, mult_order, re, im ):
2454+
def make_ComplexNumber0(fld, mult_order, re, im):
24682455
"""
24692456
Create a complex number for pickling.
24702457
@@ -2474,12 +2461,11 @@ def make_ComplexNumber0( fld, mult_order, re, im ):
24742461
sage: loads(dumps(a)) == a # indirect doctest
24752462
True
24762463
"""
2477-
x = ComplexNumber( fld, re, im )
2478-
x._set_multiplicative_order( mult_order )
2464+
x = ComplexNumber(fld, re, im)
2465+
x._set_multiplicative_order(mult_order)
24792466
return x
24802467

24812468

2482-
24832469
def create_ComplexNumber(s_real, s_imag=None, int pad=0, min_prec=53):
24842470
r"""
24852471
Return the complex number defined by the strings ``s_real`` and

0 commit comments

Comments
 (0)