def isfuture(obj):
 return (hasattr(obj.__class__, '_asyncio_future_blocking') and (obj._asyncio_future_blocking is not None))

def isfuture ( obj ) : return ( hasattr ( obj . __class__ , '_asyncio_future_blocking' ) and ( obj . _asyncio_future_blocking is not None ) )
check for a future .