[Python-Dev] Windows: Remove support of bytes filenames in the os module? (original) (raw)
Matthias Bussonnier bussonniermatthias at gmail.com
Mon Feb 8 11:01:15 EST 2016
- Previous message (by thread): [Python-Dev] Windows: Remove support of bytes filenames in the os module?
- Next message (by thread): [Python-Dev] Windows: Remove support of bytes filenames in the os module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Feb 8, 2016, at 06:40, Victor Stinner <victor.stinner at gmail.com> wrote:
2016-02-08 15:32 GMT+01:00 Victor Stinner <victor.stinner at gmail.com>: Since 3.3, functions of the os module started to emit DeprecationWarning when called with bytes filenames. (...) Recently, an user complained that os.walk() doesn't work with bytes on Windows anymore: (...) It's also sad to see that deprecation warnings are completly ignored. Python 3.3 was release in 2011, 5 years ago.
I would prefer to show deprecation warnings by default. But I know that it's an old debate: developers vs users :-) I like to see my users as potential developers ;-)
This is tracked in this issue:
http://bugs.python.org/issue24294 <http://bugs.python.org/issue24294> : DeprecationWarnings should be visible by default in the interactive REPL
IPython have enabled them only if they come from main. From totally subjective experience, that has already pushed a few library to update their code to new apis[1].
M
[1] or sometime to wrap code in ignore warnings...
Victor
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/bussonniermatthias%40gmail.com
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160208/ee0d33bf/attachment.html>
- Previous message (by thread): [Python-Dev] Windows: Remove support of bytes filenames in the os module?
- Next message (by thread): [Python-Dev] Windows: Remove support of bytes filenames in the os module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]