asPyNum property

Pointer<PyObject> asPyNum

Converts a num to a python int or double

Implementation

Pointer<PyObject> get asPyNum {
  if (this is int) {
    return (this as int).asPyInt;
  } else {
    return (this as double).asPyFloat;
  }
}