class_docstr: Integer ring based on Python's ``int`` type.
  
  This will be used as :ref:`ZZ` if ``gmpy`` and ``gmpy2`` are not
  installed. Elements are instances of the standard Python ``int`` type.
docstr: Convert SymPy's Integer to ``dtype``. 
docstr_tok: ["Convert","SymPy","'s","Integer","to","``","dtype","``","."]
code: def from_sympy(self, a):
      """Convert SymPy's Integer to ``dtype``."""
      if a.is_Integer:
          return PythonInteger(a.p)
      elif int_valued(a):
          return PythonInteger(int(a))
      else:
          raise CoercionFailed("expected an integer, got %s" % a)
  
imports: from sympy.core.numbers import int_valued
  from sympy.polys.domains.groundtypes import PythonInteger, SymPyInteger, sqrt, factorial, python_gcdex, python_gcd, python_lcm
  from sympy.polys.domains.integerring import IntegerRing
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 3 for calling the PythonIntegerRing obj's underlying member method code with example usage: obj.from_sympy(a) and returns: PythonInteger, PythonInteger