From 4d550b3faad172069fd3db7e66a3d17df857e2ac Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Wed, 11 Dec 2024 17:03:11 +0100 Subject: [PATCH] Fix queueing example (Python 2 -> 3 thingy?) --- examples/queueing/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/queueing/queue.py b/examples/queueing/queue.py index ef139ee..5b11cab 100644 --- a/examples/queueing/queue.py +++ b/examples/queueing/queue.py @@ -4,7 +4,7 @@ from pypdevs.DEVS import AtomicDEVS class QueueState: def __init__(self, outputs): # Keep a list of all idle processors - self.idle_procs = range(outputs) + self.idle_procs = list(range(outputs)) # Keep a list that is the actual queue data structure self.queue = [] # Keep the process that is currently being processed