code: def _convert_py_number(value):
      
      try:
          return c_uamqp.int_value(value)
      except OverflowError:
          pass
      try:
          return c_uamqp.long_value(value)
      except OverflowError:
          pass
      return c_uamqp.double_value(value)
docs: Convert a Python integer value into equivalent C object.
      Will attempt to use the smallest possible conversion, starting with int, then long
      then double.