Open source, https://github.com/albertz/
for msg_type, msg_opts in msg_queue: ...
msg_type is just a string, msg_opts is a dict.
Whether you use `match`/`case` or `if` on the msg_type is a matter of preference. Match/case is still quite young (Python 3.10).
for msg_type, msg_opts in msg_queue: ...
msg_type is just a string, msg_opts is a dict.
Whether you use `match`/`case` or `if` on the msg_type is a matter of preference. Match/case is still quite young (Python 3.10).