Re: [Python-Dev] Windows: Remove support of bytes filenames in the os module?

2016年2月08日 08:10:52 -0800

> On Feb 8, 2016, at 06:40, Victor Stinner <[email protected]> wrote:
> 
> 2016年02月08日 15:32 GMT+01:00 Victor Stinner <[email protected]>:
>> 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
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> https://mail.python.org/mailman/options/python-dev/bussonniermatthias%40gmail.com
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to