1f54acd27488f089f3211c08aef5d9927183d1c6,python/ray/actor.py,ActorMethod,__call__,#ActorMethod#,97

Before Change


            self._actor_hard_ref = None

    def __call__(self, *args, **kwargs):
        raise TypeError("Actor methods cannot be called directly. Instead "
                        "of running "object.{}()", try "
                        ""object.{}.remote()".".format(self._method_name,
                                                       self._method_name))

    def remote(self, *args, **kwargs):
        return self._remote(args, kwargs)

After Change


            self._actor_hard_ref = None

    def __call__(self, *args, **kwargs):
        raise TypeError("Actor methods cannot be called directly. Instead "
                        f"of running "object.{self._method_name}()", try "
                        f""object.{self._method_name}.remote()".")

    def remote(self, *args, **kwargs):
        return self._remote(args, kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ray-project/ray
Commit Name: 1f54acd27488f089f3211c08aef5d9927183d1c6
Time: 2020-08-23
Author: rkooo567@gmail.com
File Name: python/ray/actor.py
Class Name: ActorMethod
Method Name: __call__


Project Name: ray-project/ray
Commit Name: 1f54acd27488f089f3211c08aef5d9927183d1c6
Time: 2020-08-23
Author: rkooo567@gmail.com
File Name: python/ray/remote_function.py
Class Name: RemoteFunction
Method Name: __call__


Project Name: ray-project/ray
Commit Name: 1f54acd27488f089f3211c08aef5d9927183d1c6
Time: 2020-08-23
Author: rkooo567@gmail.com
File Name: python/ray/actor.py
Class Name: ActorClass
Method Name: __call__