def cancel(self):
        if super(Future, self).cancel():
            return True

        with self._condition:
            if self._state is not Futures.RUNNING or self._onCancel is None:
                # can't cancel
                return False
            if self._onCancel(self._executorState):
                self._state = Futures.CANCELLED
                self._condition.notify_all()

        self._invoke_callbacks()
        return True
Returns a Python dict that contains just the attributes
dataset/ETHPy150Open ufora/ufora/packages/python/pyfora/Future.py/Future.cancel--crossover with--dataset/ETHPy150Open dgraziotin/dycapo/server/models/location.py/Location.to_xmlrpc