3 ms·
Okay please debug my py2 -> py3 migration bytes vs strings code with no type annotations. Aaaahg it burns. I basically am going through and first annotating,
by Tyr42 4y ago
Okay please debug my py2 -> py3 migration bytes vs strings code with no type annotations.
Aaaahg it burns. I basically am going through and first annotating, then upgrading.
- moffkalast 4y agoAhaha I've had the exact same issue recently, fortunately it was only in a few spots. Fair enough. Interestingly enough, py2 was smart enough to automatically load things in the correct format. Loading a binary file? Get bytes. Loading a text file? Get a string. Py3 has worse functionality now, all for the sake of consistency.