John Goerzen · @jgoerzen
713 followers · 2220 posts · Server floss.social

@JonYoder You got me thinking in more detail why I reflexively avoid now, despite the fact that I wrote two large programs ( and ) in it, and published a book about it. 1/

#pygopherd #offlineimap #Python

Last updated 3 years ago

John Goerzen · @jgoerzen
713 followers · 2220 posts · Server floss.social

@JonYoder I wrote a series of articles on this subject culminating in changelog.complete.org/archive . In short, I was so burned by my effort to port to 3 -- and the utter crappiness and inconsistency of handling non-UTF8 in even the library bundled with Python -- that I consider it unsuitable for any purpose involving filenames, command-line parameters, or environment variables. One lovely tidbit is the zipfile.py tries to decode non-UTF8 sequences as cp437 in ALL cases!

#Python #pygopherd

Last updated 3 years ago