Skip to content

Commit 77d0c81

Browse files
committed
Remove remaining references to Sage
1 parent 9481e6a commit 77d0c81

File tree

8 files changed

+28
-37
lines changed

8 files changed

+28
-37
lines changed

autogen/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def convert_code(self):
313313
'b': PariArgumentBitprec,
314314
'P': PariArgumentSeriesPrec,
315315

316-
# Codes which are known but not actually supported for Sage
316+
# Codes which are known but not actually supported yet
317317
'&': None,
318318
'V': None,
319319
'I': None,

autogen/doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Handle PARI documentation for Sage
3+
Handle PARI documentation
44
"""
55

66
from __future__ import unicode_literals
@@ -222,7 +222,7 @@ def raw_to_rest(doc):
222222
doc = prototype.sub("", doc)
223223

224224
# Remove everything starting with "The library syntax is"
225-
# (this is not relevant for Sage)
225+
# (this is not relevant for Python)
226226
doc = library_syntax.sub("", doc)
227227

228228
# Allow at most 2 consecutive newlines

autogen/generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"""
4343
Part of the :class:`Pari` class containing auto-generated functions.
4444
45-
You must never use this class directly (in fact, Sage may crash if
46-
you do), use the derived class :class:`Pari` instead.
45+
You must never use this class directly (in fact, Python may crash
46+
if you do), use the derived class :class:`Pari` instead.
4747
"""
4848
'''.format(__file__)
4949

@@ -70,7 +70,7 @@ def __init__(self):
7070

7171
def can_handle_function(self, function, cname="", **kwds):
7272
"""
73-
Can we actually handle this function in Sage?
73+
Can we actually handle this function?
7474
7575
EXAMPLES::
7676
@@ -92,7 +92,7 @@ def can_handle_function(self, function, cname="", **kwds):
9292
# Not a legal function name, like "!_"
9393
return False
9494
if cname not in self.declared:
95-
# PARI function not in Sage's decl.pxi or declinl.pxi
95+
# PARI function not in paridecl.pxd or declinl.pxi
9696
return False
9797
cls = kwds.get("class", "unknown")
9898
sec = kwds.get("section", "unknown")
@@ -108,7 +108,7 @@ def can_handle_function(self, function, cname="", **kwds):
108108
def handle_pari_function(self, function, cname="", prototype="", help="", obsolete=None, **kwds):
109109
r"""
110110
Handle one PARI function: decide whether or not to add the
111-
function to Sage, in which file (as method of :class:`Gen` or
111+
function, in which file (as method of :class:`Gen` or
112112
of :class:`Pari`?) and call :meth:`write_method` to
113113
actually write the code.
114114

cypari2/closure.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cdef inline GEN call_python_func_impl "call_python_func"(GEN* args, object py_fu
4949
Call ``py_func(*args)`` where ``py_func`` is a Python function
5050
and ``args`` is an array of ``GEN``s terminated by ``NULL``.
5151
52-
The arguments are converted from ``GEN`` to a Sage ``gen`` before
52+
The arguments are converted from ``GEN`` to a cypari ``gen`` before
5353
calling ``py_func``. The result is converted back to a PARI ``GEN``.
5454
"""
5555
# How many arguments are there?

cypari2/gen.pyx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ cdef class Gen(Gen_auto):
13541354
[[0]]
13551355
>>> v[0] = w
13561356
1357-
Now there is a circular reference. Accessing v[0] will crash Sage.
1357+
Now there is a circular reference. Accessing v[0] will crash Python.
13581358
13591359
>>> s = pari.vector(2,[0,0])
13601360
>>> s[:1]
@@ -1814,7 +1814,7 @@ cdef class Gen(Gen_auto):
18141814

18151815
def sage(self, locals=None):
18161816
r"""
1817-
Return the closest Sage equivalent of the given PARI object.
1817+
Return the closest SageMath equivalent of the given PARI object.
18181818
18191819
INPUT:
18201820
@@ -3838,11 +3838,6 @@ cdef class Gen(Gen_auto):
38383838
- a matrix: a partial factorization of the discriminant
38393839
of ``x``.
38403840
3841-
.. NOTE::
3842-
3843-
In earlier versions of Sage, other bits in ``flag`` were
3844-
defined but these are now simply ignored.
3845-
38463841
Examples:
38473842
38483843
>>> from cypari2 import Pari
@@ -4481,7 +4476,7 @@ cdef class Gen(Gen_auto):
44814476
returned factors larger than `2^{64}` may only be pseudoprimes.
44824477
If ``True``, always check primality. If not given, use the
44834478
global PARI default ``factor_proven`` which is ``True`` by
4484-
default in Sage.
4479+
default in cypari.
44854480
44864481
Examples:
44874482
@@ -4919,11 +4914,11 @@ cdef Gen list_of_Gens_to_Gen(list s):
49194914

49204915
cpdef Gen objtogen(s):
49214916
"""
4922-
Convert any Sage/Python object to a PARI :class:`Gen`.
4917+
Convert any SageMath/Python object to a PARI :class:`Gen`.
49234918
4924-
For Sage types, this uses the ``__pari__()`` method on the object.
4925-
Basic Python types like ``int`` are converted directly. For other
4926-
types, the string representation is used.
4919+
For SageMath types, this uses the ``__pari__()`` method on the
4920+
object. Basic Python types like ``int`` are converted directly.
4921+
For other types, the string representation is used.
49274922
49284923
Examples:
49294924

cypari2/handle_error.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ cdef void _pari_init_error_handling():
155155

156156
cdef int _pari_err_handle(GEN E) except 0:
157157
"""
158-
Convert a PARI error into a Sage exception.
158+
Convert a PARI error into a Python exception.
159159
160160
This function is a callback from the PARI error handler.
161161

cypari2/pari_instance.pyx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ inputs and the ``precision`` argument is ignored:
210210
Tests:
211211
212212
Check that output from PARI's print command is actually seen by
213-
Sage (:trac:`9636`):
213+
Python (:trac:`9636`):
214214
215215
>>> pari('print("test")')
216216
test
@@ -629,9 +629,9 @@ cdef class Pari(Pari_auto):
629629
for printing. It determines the number of digits in which real
630630
numbers numbers are printed. It also determines the precision
631631
of objects created by parsing strings (e.g. pari('1.2')), which
632-
is *not* the normal way of creating new pari objects in Sage.
633-
It has *no* effect on the precision of computations within the
634-
PARI library.
632+
is *not* the normal way of creating new PARI objects using
633+
cypari. It has *no* effect on the precision of computations
634+
within the PARI library.
635635
636636
.. seealso:: :meth:`set_real_precision` to set the
637637
precision in decimal digits.
@@ -658,9 +658,9 @@ cdef class Pari(Pari_auto):
658658
for printing. It determines the number of digits in which real
659659
numbers numbers are printed. It also determines the precision
660660
of objects created by parsing strings (e.g. pari('1.2')), which
661-
is *not* the normal way of creating new pari objects in Sage.
662-
It has *no* effect on the precision of computations within the
663-
PARI library.
661+
is *not* the normal way of creating new PARI objects using
662+
cypari. It has *no* effect on the precision of computations
663+
within the PARI library.
664664
665665
.. seealso:: :meth:`get_real_precision` to get the
666666
precision in decimal digits.
@@ -908,9 +908,9 @@ cdef class Pari(Pari_auto):
908908
The PARI stack is never automatically shrunk. You can use the
909909
command ``pari.allocatemem(10^6)`` to reset the size to `10^6`,
910910
which is the default size at startup. Note that the results of
911-
computations using Sage's PARI interface are copied to the
912-
Python heap, so they take up no space in the PARI stack.
913-
The PARI stack is cleared after every computation.
911+
computations using cypari are copied to the Python heap, so they
912+
take up no space in the PARI stack. The PARI stack is cleared
913+
after every computation.
914914
915915
It does no real harm to set this to a small value as the PARI
916916
stack will be automatically doubled when we run out of memory.
@@ -1184,10 +1184,6 @@ cdef class Pari(Pari_auto):
11841184
- ``seed`` -- either a strictly positive integer or a GEN of
11851185
type ``t_VECSMALL`` as output by ``getrand()``
11861186
1187-
This should not be called directly; instead, use Sage's global
1188-
random number seed handling in ``sage.misc.randstate``
1189-
and call ``current_randstate().set_seed_pari()``.
1190-
11911187
Examples:
11921188
11931189
>>> import cypari2

cypari2/types.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ cdef extern from "<pari/pari.h>":
6666
long evalexpo(long x)
6767
long evallgefint(long x)
6868

69-
# Various structures that we don't use in Sage but which need to be
69+
# Various structures that we don't interface but which need to be
7070
# declared, such that Cython understands the declarations of
7171
# functions using these types.
7272
struct bb_group

0 commit comments

Comments
 (0)