While trying out the reader
project code presented in Chapter 1 of The Python Journeyman,
I problem solved a couple of issues. I'm certain that my issues are related to being a Java defector, and a pythonic newbie.
I'm running Python 3.8.1 on macOS 10.15.
- UnicodeDecodeError: 'utf-8' codec can't decode byte ...: invalid start byte
The invalid start byte, I assume is related to
test.bz2
and the authors'bz2.open(..., mode='wt')
. I usedmode='wb'
. - bound method MultiReader.read of <reader.multireader.MultiReader object at 0x10f4a8a90>