|
|
Subscribe / Log in / New account

Python 2.8?

Python 2.8?

Posted Jan 13, 2017 7:39 UTC (Fri) by Cyberax (✭ supporter ✭, #52523)
In reply to: Python 2.8? by ddevault
Parent article: Python 2.8?

I know perfectly well how to work with Unicode. I know how Py3 is supposed to be used - it assumes that everything can be losslessly converted to "real strings" on the external border.

BUT THIS IS NOT TRUE!

Real world out here is full of misencoded stuff that can only be represented by byte arrays. It can NOT be encoded into strings without losses or quoting. Thus "PathLike" class with dual nature to represent them is needed for Py3.

Py3 makes working with such entities a total pain. Py27 is entirely a breeze - it just works.

And please, do explain what I gain from following all the Py3 rules of unicode strings? What are the advantages over Py27 with utf-8 strings?


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds