Nov-22-2021, 02:10 PM
There are three calls to
ifh.read()
in this code. The first call reads the ID tag, the second call reads the length and the third call reads the data. Perhaps you need to learn about Python 3.8's walrus operator :=
?