[Python-Dev] NTPath or WindowsPath?
mail at timgolden.me.uk
Mon Nov 18 11:18:12 CET 2013
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
>> <storchaka at 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
More information about the Python-Dev