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

Commit e5f9325

Browse files
committed
#18036 doctest updates: I.pyobject()
1 parent 8125051 commit e5f9325

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/sage/categories/rings.py

-2
Original file line numberDiff line numberDiff line change
@@ -1054,8 +1054,6 @@ def __getitem__(self, arg):
10541054
10551055
Embeddings::
10561056
1057-
sage: QQ[I](I.pyobject())
1058-
I
10591057
sage: a = 10^100; expr = (2*a + sqrt(2))/(2*a^2-1)
10601058
sage: QQ[expr].coerce_embedding() is None
10611059
False

src/sage/libs/pynac/pynac.pyx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,9 @@ def py_is_crational_for_doctest(x):
11741174
True
11751175
sage: py_is_crational_for_doctest(1.5)
11761176
False
1177-
sage: py_is_crational_for_doctest(I.pyobject())
1177+
sage: py_is_crational_for_doctest(I)
11781178
True
1179-
sage: py_is_crational_for_doctest(I.pyobject()+1/2)
1179+
sage: py_is_crational_for_doctest(I+1/2)
11801180
True
11811181
"""
11821182
return py_is_crational(x)
@@ -1310,11 +1310,11 @@ def py_is_cinteger_for_doctest(x):
13101310
sage: from sage.libs.pynac.pynac import py_is_cinteger_for_doctest
13111311
sage: py_is_cinteger_for_doctest(1)
13121312
True
1313-
sage: py_is_cinteger_for_doctest(I.pyobject())
1313+
sage: py_is_cinteger_for_doctest(I)
13141314
True
1315-
sage: py_is_cinteger_for_doctest(I.pyobject() - 3)
1315+
sage: py_is_cinteger_for_doctest(I - 3)
13161316
True
1317-
sage: py_is_cinteger_for_doctest(I.pyobject() + 1/2)
1317+
sage: py_is_cinteger_for_doctest(I + 1/2)
13181318
False
13191319
"""
13201320
return py_is_cinteger(x)

src/sage/symbolic/expression.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ This example is from :trac:`10833`::
255255
256256
Check if :trac:`10849` is fixed::
257257
258-
sage: t = I.pyobject().parent()(-1/2)
258+
sage: t = I.parent()(-1/2)
259259
sage: t > 0
260260
False
261261
sage: t = I*x-1/2; t

0 commit comments

Comments
 (0)