Open mulac opened 2 years ago
The design predates the type bytes
(it's from early Python 2, and possibly Python 1.5.2), so it only works on array.array("B")
.
However, i can see that png.Reader(f.read())
could be useful, so i shall consider this a bug.
png.Reader(f)
should work by the way; although it does then become unclear when you should close f
.
The docs says Reader.init takes bytes but fails on the isinstance(some_bytes, array) check.
Is this expected behaviour?