Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid redefining built-in "list".
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 10 Jan 2019 10:31:30 +0000 (11:31 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 10 Jan 2019 11:14:43 +0000 (12:14 +0100)
examples/python/actor-suspend/actor-suspend.py

index 5fecb46..703ba15 100644 (file)
@@ -75,7 +75,7 @@ if __name__ == '__main__':
             "Usage: actor-suspend.py platform_file [other parameters]")
 
     e.load_platform(sys.argv[1])  # Load the platform description
-    list = e.get_all_hosts()
-    Actor.create("dream_master", list[0], dream_master)
+    hosts = e.get_all_hosts()
+    Actor.create("dream_master", hosts[0], dream_master)
 
     e.run()  # Run the simulation