[Python-ideas] Py3 unicode impositions

Carl M. Johnson cmjohnson.mailinglist at gmail.com
Sun Feb 12 04:19:41 CET 2012


On Feb 11, 2012, at 5:10 PM, Eric Snow wrote:

> So something like this:
> 
>    import functools, builtins
>    open = builtins.open = functools.partial(open, encoding="ascii",
> errors="surrogateescape")


We could pack it in and call it something like "python2open". :-) 



More information about the Python-ideas mailing list