]> sigrok.org Git - libsigrokdecode.git/commit
microwire: Use namedtuple for the Python output.
authorUwe Hermann <redacted>
Fri, 5 May 2017 18:18:54 +0000 (20:18 +0200)
committerUwe Hermann <redacted>
Fri, 5 May 2017 18:18:19 +0000 (20:18 +0200)
commit15c107c28d4715d36787fb1e6dc6b21ec7b5b5b9
treef9f92ae5b4139a3f0a00098dd62385802f0e5015
parentfe9e9cebf035708240350b4fe80a676112130074
microwire: Use namedtuple for the Python output.

This has two advantages:

 - The Python output is always deterministic, which was not the case for
   the dict-based version since dict items have no guaranteed order in
   Python. This caused issues with the sigrok-test use-case.

 - The code is slightly more readable.
decoders/microwire/pd.py