Skip to content

Commit 55d5e28

Browse files
richardliawrobertnishihara
authored andcommitted
[core] Better Actor Representation (#2369)
1 parent fa33ea5 commit 55d5e28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ray/actor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,8 @@ def __getattribute__(self, attr):
841841
return object.__getattribute__(self, attr)
842842

843843
def __repr__(self):
844-
return "Actor(" + self._ray_actor_id.hex() + ")"
844+
return "Actor({}, {})".format(self._ray_class_name,
845+
self._ray_actor_id.hex())
845846

846847
def __del__(self):
847848
"""Kill the worker that is running this actor."""

0 commit comments

Comments
 (0)