From: Martin Quinson Date: Mon, 14 Jan 2019 10:57:11 +0000 (+0100) Subject: Doc improvement in this example X-Git-Tag: v3_22~563 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b9964e3f91a54279a938c17a9ddb92d3da9ed99f?ds=sidebyside Doc improvement in this example --- diff --git a/examples/python/actor-create/actor-create.py b/examples/python/actor-create/actor-create.py index 3f439068d3..4bb1d52c01 100644 --- a/examples/python/actor-create/actor-create.py +++ b/examples/python/actor-create/actor-create.py @@ -63,6 +63,8 @@ class Sender: self.msg = msg self.mbox = mbox + # Actors that are created as object will execute their __call__ method. + # So, the following constitutes the main function of the Sender actor. def __call__(self): this_actor.info("Hello s4u, I have something to send") mailbox = Mailbox.by_name(self.mbox)