From 55d5e2887209ae89c5540e41b259517425efce77 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 9 Jul 2018 11:20:21 -0700 Subject: [PATCH] [core] Better Actor Representation (#2369) --- python/ray/actor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ray/actor.py b/python/ray/actor.py index 9af6c6c36..ec983855b 100644 --- a/python/ray/actor.py +++ b/python/ray/actor.py @@ -841,7 +841,8 @@ class ActorHandle(object): return object.__getattribute__(self, attr) def __repr__(self): - return "Actor(" + self._ray_actor_id.hex() + ")" + return "Actor({}, {})".format(self._ray_class_name, + self._ray_actor_id.hex()) def __del__(self): """Kill the worker that is running this actor."""