This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree 3 files changed +6
-8
lines changed
3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1054,8 +1054,6 @@ def __getitem__(self, arg):
1054
1054
1055
1055
Embeddings::
1056
1056
1057
- sage: QQ[I](I.pyobject())
1058
- I
1059
1057
sage: a = 10^100; expr = (2*a + sqrt(2))/(2*a^2-1)
1060
1058
sage: QQ[expr].coerce_embedding() is None
1061
1059
False
Original file line number Diff line number Diff line change @@ -1174,9 +1174,9 @@ def py_is_crational_for_doctest(x):
1174
1174
True
1175
1175
sage: py_is_crational_for_doctest(1.5)
1176
1176
False
1177
- sage: py_is_crational_for_doctest(I.pyobject() )
1177
+ sage: py_is_crational_for_doctest(I)
1178
1178
True
1179
- sage: py_is_crational_for_doctest(I.pyobject() +1/2)
1179
+ sage: py_is_crational_for_doctest(I+1/2)
1180
1180
True
1181
1181
"""
1182
1182
return py_is_crational(x)
@@ -1310,11 +1310,11 @@ def py_is_cinteger_for_doctest(x):
1310
1310
sage: from sage.libs.pynac.pynac import py_is_cinteger_for_doctest
1311
1311
sage: py_is_cinteger_for_doctest(1)
1312
1312
True
1313
- sage: py_is_cinteger_for_doctest(I.pyobject() )
1313
+ sage: py_is_cinteger_for_doctest(I)
1314
1314
True
1315
- sage: py_is_cinteger_for_doctest(I.pyobject() - 3)
1315
+ sage: py_is_cinteger_for_doctest(I - 3)
1316
1316
True
1317
- sage: py_is_cinteger_for_doctest(I.pyobject() + 1/2)
1317
+ sage: py_is_cinteger_for_doctest(I + 1/2)
1318
1318
False
1319
1319
"""
1320
1320
return py_is_cinteger(x)
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ This example is from :trac:`10833`::
255
255
256
256
Check if :trac:`10849` is fixed::
257
257
258
- sage: t = I.pyobject(). parent()(-1/2)
258
+ sage: t = I.parent()(-1/2)
259
259
sage: t > 0
260
260
False
261
261
sage: t = I*x-1/2; t
You can’t perform that action at this time.
0 commit comments