X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b9964e3f91a54279a938c17a9ddb92d3da9ed99f..59251ff676c562b79573e3561166e4351e4ad11e:/examples/python/actor-create/actor-create.py diff --git a/examples/python/actor-create/actor-create.py b/examples/python/actor-create/actor-create.py index 4bb1d52c01..c92316d0c0 100644 --- a/examples/python/actor-create/actor-create.py +++ b/examples/python/actor-create/actor-create.py @@ -1,4 +1,4 @@ -# Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. +# Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. @@ -16,8 +16,8 @@ # application and the settings to test it. This is a better scientific methodology. Actually, starting an actor with # Actor.create() is mostly useful to start an actor from another actor. +from simgrid import Actor, Engine, Host, Mailbox, this_actor import sys -from simgrid import * def receiver(mailbox_name): @@ -59,7 +59,7 @@ class Sender: Later, this actor class is instantiated twice in the simulation. """ - def __init__(self, msg = "GaBuZoMeu", mbox = "mb42"): + def __init__(self, msg="GaBuZoMeu", mbox="mb42"): self.msg = msg self.mbox = mbox