On 18/11/2013 10:08, Serhiy Storchaka wrote: > 18.11.13 04:31, Brian Curtin написав(ла): >> On Sat, Nov 16, 2013 at 2:50 PM, Serhiy Storchaka >> <storch...@gmail.com> wrote: >>> 16.11.13 21:15, Antoine Pitrou написав(ла): >>> >>>> In a (private) discussion about PEP 428 and pathlib, Guido proposed >>>> that maybe NTPath should be renamed to WindowsPath, since the name is >>>> more likely to stay relevant in the middle term. What do you think? >>> >>> >>> What about nturl2path, os.name, sysconfig.get_scheme_names()? >> >> What about them? > > Should nturl2path be renamed to windowsurl2path? Should os.name return > "windows" on Windows, and should sysconfig support "windows" scheme name?
I think the answer's fairly obviously "no" for reasons of backwards compatibility. (Although that doesn't rule out aliases if someone felt strongly enough about it). I don't say that there's no case for trying address the considerable variety of Python & C ways of saying "I'm on Windows" with the core & stdlib. But I do say that whoever makes a case had better be *very* sure of the impact. Going forwards, however, I'm happy to see new Python code using "Windows" rather than the size-specific "Win32/64" or the dated and over-specific "NT". TJG _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com