Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate 2 C functions
[simgrid.git] / examples / python / comm-testany / comm-testany.py
index 1b32047..84469b0 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.
+# Copyright (c) 2010-2023. 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.
@@ -24,9 +24,9 @@ def create_parser() -> ArgumentParser:
 def rank0():
     rank0_mailbox: Mailbox = Mailbox.by_name("rank0")
     this_actor.info("Post my asynchronous receives")
-    comm1, a1 = rank0_mailbox.get_async()
-    comm2, a2 = rank0_mailbox.get_async()
-    comm3, a3 = rank0_mailbox.get_async()
+    comm1 = rank0_mailbox.get_async()
+    comm2 = rank0_mailbox.get_async()
+    comm3 = rank0_mailbox.get_async()
     pending_comms: List[Comm] = [comm1, comm2, comm3]
 
     this_actor.info("Send some data to rank-1")