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

Commit

Permalink
24511 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Jan 11, 2018
1 parent a782296 commit 977f62d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sage/rings/real_mpfr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5795,3 +5795,21 @@ cdef class int_toRR(Map):
cdef RealNumber y = parent._new()
mpfr_set_si(y.value, x, parent.rnd)
return y


def create_RealField(*args, **kwds):
r"""
Deprecated function moved to :mod:`sage.rings.real_field`.
TESTS::
sage: from sage.rings.real_mpfr import create_RealField
sage: create_RealField()
doctest:...: DeprecationWarning: Please import create_RealField from sage.rings.real_field
See http://trac.sagemath.org/24511 for details.
Real Field with 53 bits of precision
"""
from sage.misc.superseded import deprecation
deprecation(24511, "Please import create_RealField from sage.rings.real_field")
from sage.rings.real_field import create_RealField as cr
return cr(*args, **kwds)

0 comments on commit 977f62d

Please sign in to comment.