class_docstr: Exact rational type, currently only intended for internal use.
class_docstr_tok: ["Exact","rational","type",",","currently","only","intended","for","internal","use","."]
code: def __sub__(s, t):
      ttype = type(t)
      if ttype is mpq:
          a, b = s._mpq_
          c, d = t._mpq_
          return create_reduced(a * d - b * c, b * d)
      if ttype in int_types:
          a, b = s._mpq_
          v = new(mpq)
          v._mpq_ = a - b * t, b
          return v
      return NotImplemented
  
imports: import operator
  import sys
  from .libmp import int_types, mpf_hash, bitcount, from_man_exp, HASH_MODULUS
label_desc: Use image node_id 18 for calling the mpq obj's underlying member method code with example usage: obj.__sub__(s, t) and returns: NotImplemented, create_reduced, v