Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As the page notes, many Py2 APIs are completely broken with unicode literals, some noisily and others silently (due to implicit ascii encoding/decoding) leading to hard to diagnose regressions in the codebase under Python 2.

I think leveraging PEP414 and carefully using bytes, unicode or "native" literals is a much more resilient mode of operation.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: