def descr_new_handle(self, w_arg): """\ Return a non-NULL cdata of type 'void *' that contains an opaque reference to the argument, which can be any Python object. To cast it back to the original object, use from_handle(). You must keep alive the cdata object returned by new_handle()!""" # space = self.space return handle._newp_handle(space, newtype._new_voidp_type(space), w_arg)
def descr_new_handle(self, w_arg): """\ Return a non-NULL cdata of type 'void *' that contains an opaque reference to the argument, which can be any Python object. To cast it back to the original object, use from_handle(). You must keep alive the cdata object returned by new_handle()!""" # space = self.space return handle._newp_handle(space, newtype._new_voidp_type(space), w_arg)
def make_NULL(space): ctvoidp = newtype._new_voidp_type(space) w_NULL = ctvoidp.cast(space.newint(0)) return w_NULL
def make_NULL(space): ctvoidp = newtype._new_voidp_type(space) w_NULL = ctvoidp.cast(space.wrap(0)) return w_NULL