qemu-e2k/python/qemu
John Snow aad3f3bb6c python/qemu: make 'args' style arguments immutable
These arguments don't need to be mutable and aren't really used as
such. Clarify their types as immutable and adjust code to match where
necessary.

In general, It's probably best not to accept a user-defined mutable
object and store it as internal object state unless there's a strong
justification for doing so. Instead, try to use generic types as input
with empty tuples as the default, and coerce to list where necessary.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201006235817.3280413-10-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2020-10-20 09:37:57 -04:00
..
__init__.py python/qemu: Remove unneeded imports in __init__ 2019-12-16 18:39:51 -05:00
.flake8 python/qemu: delint; add flake8 config 2020-05-31 18:25:30 +02:00
.isort.cfg python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
accel.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
console_socket.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
machine.py python/qemu: make 'args' style arguments immutable 2020-10-20 09:37:57 -04:00
pylintrc python/qemu: Cleanup changes to ConsoleSocket 2020-07-27 09:41:52 +01:00
qmp.py python/qemu: use isort to lay out imports 2020-10-20 09:37:57 -04:00
qtest.py python/qemu: make 'args' style arguments immutable 2020-10-20 09:37:57 -04:00