def __del__(self): fd = self.fd if fd != _c.INVALID_SOCKET: self.fd = _c.INVALID_SOCKET _c.socketclose_no_errno(fd)
def close(self): if not self.get_closed(): kqfd = self.kqfd self.kqfd = -1 socketclose_no_errno(kqfd) self.may_unregister_rpython_finalizer(self.space)
def close(self): if not self.get_closed(): kqfd = self.kqfd self.kqfd = -1 socketclose_no_errno(kqfd)