int getRefCount(Pointer<g.PyObject> ptr) => Platform.isWindows ? ptr.cast<_PyObjectDebugWin>().ref.count : ptr.cast<_PyObjectDebugPosix>().ref.count;