[Python-Dev] Emit a BytesWarning on bytes filenames on Windows

Victor Stinner victor.stinner at haypocalc.com
Wed Nov 9 01:41:56 CET 2011


Le samedi 29 octobre 2011 07:47:01, vous avez écrit :
> Therefore, as you imply, I think the solution to this issue is to start
> the process of deprecating the bytes version of the api in py3k with a
> view to removing it completely - possibly with a less aggressive
> timeline than normal.  In Python 2.7, I think documenting the issue and
> a recommendation to always use unicode is sufficient (ie, we can't
> deprecate it and a new BytesWarning seems gratuitous.)

I wrote a patch to implement the deprecation:
http://bugs.python.org/issue13374

Victor


More information about the Python-Dev mailing list