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

Commit

Permalink
#18036 doctest updates: I.pyobject()
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Nov 8, 2020
1 parent 8125051 commit e5f9325
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/sage/categories/rings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,6 @@ def __getitem__(self, arg):
Embeddings::
sage: QQ[I](I.pyobject())
I
sage: a = 10^100; expr = (2*a + sqrt(2))/(2*a^2-1)
sage: QQ[expr].coerce_embedding() is None
False
Expand Down
10 changes: 5 additions & 5 deletions src/sage/libs/pynac/pynac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,9 @@ def py_is_crational_for_doctest(x):
True
sage: py_is_crational_for_doctest(1.5)
False
sage: py_is_crational_for_doctest(I.pyobject())
sage: py_is_crational_for_doctest(I)
True
sage: py_is_crational_for_doctest(I.pyobject()+1/2)
sage: py_is_crational_for_doctest(I+1/2)
True
"""
return py_is_crational(x)
Expand Down Expand Up @@ -1310,11 +1310,11 @@ def py_is_cinteger_for_doctest(x):
sage: from sage.libs.pynac.pynac import py_is_cinteger_for_doctest
sage: py_is_cinteger_for_doctest(1)
True
sage: py_is_cinteger_for_doctest(I.pyobject())
sage: py_is_cinteger_for_doctest(I)
True
sage: py_is_cinteger_for_doctest(I.pyobject() - 3)
sage: py_is_cinteger_for_doctest(I - 3)
True
sage: py_is_cinteger_for_doctest(I.pyobject() + 1/2)
sage: py_is_cinteger_for_doctest(I + 1/2)
False
"""
return py_is_cinteger(x)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ This example is from :trac:`10833`::
Check if :trac:`10849` is fixed::
sage: t = I.pyobject().parent()(-1/2)
sage: t = I.parent()(-1/2)
sage: t > 0
False
sage: t = I*x-1/2; t
Expand Down

0 comments on commit e5f9325

Please sign in to comment.