Open LudovicRousseau opened 7 years ago
Use Named tuples https://docs.python.org/3/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields instead of tuples.
For example .transmit() could return a named tuple [response="", sw1=, sw2=].
.transmit()
[response="", sw1=, sw2=]
Use Named tuples https://docs.python.org/3/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields instead of tuples.
For example
.transmit()
could return a named tuple[response="", sw1=, sw2=]
.