[core] Better Actor Representation (#2369)

This commit is contained in:
Richard Liaw
2018-07-09 11:20:21 -07:00
committed by Robert Nishihara
parent fa33ea5283
commit 55d5e28872
+2 -1
View File
@@ -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."""