[Python-Dev] Deprecate codecs.open() and StreamWriter/StreamReader

Victor Stinner victor.stinner at haypocalc.com
Fri May 27 17:44:06 CEST 2011


Le vendredi 27 mai 2011 15:42:10, M.-A. Lemburg a écrit :
> If we'd go by your reasoning for deprecating and eventually
> removing parts of the stdlib or Python's subsystems, we'll end
> up with a barebone version of Python. That's not what we want
> and it's not what our users want.

I don't want to deprecate the whole stdlib, just duplicate old API, to follow 
"import this" mantra:

"There should be one-- and preferably only one --obvious way to do it."

It's difficult for an user to choose between between open() and codecs.open().

Victor


More information about the Python-Dev mailing list