Skip to content

Commit

Permalink
[core] Better Actor Representation (ray-project#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliaw authored and robertnishihara committed Jul 9, 2018
1 parent fa33ea5 commit 55d5e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,8 @@ def __getattribute__(self, attr):
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."""
Expand Down

0 comments on commit 55d5e28

Please sign in to comment.