Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-28 Thread Steve Dower
Windows fully supports *user* customization of file associations and there is no concept of ownership. The first program installed that sets up an association will normally get it, and as of Win8 the next application will be blocked (and suggested to the user next time they open a file). Whether

Re: [Python-Dev] Refactoring test.support into a subpackage

2013-07-28 Thread Nick Coghlan
On 28 July 2013 20:20, Nick Coghlan wrote: >> The scope of the plan covers a few distinct steps: >> >> 1. Move Lib/test/support.py to Lib/test/support/__init__.py >> (http://bugs.python.org/issue15494) >> 2. Add a new (documented) test.support.pkg_helper submodule with the >> package creation supp

Re: [Python-Dev] Official github mirror for CPython?

2013-07-28 Thread Chris Withers
On 25/07/2013 16:30, Brett Cannon wrote: Based on the list of people who are members of github.com/python it's as official as it's going to get (depends on who of that group owns it). But assuming whomever owns it is okay with hosting a mirror, what exactly is going to

Re: [Python-Dev] Refactoring test.support into a subpackage

2013-07-28 Thread Nick Coghlan
On 15 July 2013 20:22, Nick Coghlan wrote: > At the PyCon AU sprints, some of the sprinters worked on a plan Chris > Jerdonek and I came up with months ago to convert test.support from a > module into a subpackage. > > This plan arose from some nasty test suite hacks in the lead up to the > releas

Re: [Python-Dev] PEP 446: Open issues/questions

2013-07-28 Thread Charles-François Natali
2013/7/28 Antoine Pitrou : >> (C) Should we handle standard streams (0: stdin, 1: stdout, 2: stderr) >> differently? For example, os.dup2(fd, 0) should make the file >> descriptor 0 (stdin) inheritable or non-inheritable? On Windows, >> os.set_inheritable(fd, False) fails (error 87, invalid argumen

Re: [Python-Dev] PEP 446: Open issues/questions

2013-07-28 Thread Antoine Pitrou
On Sun, 28 Jul 2013 02:39:19 +0200 Victor Stinner wrote: > Hi, > > I have a few more questions on the PEP 446: > > (A) How should we support support where os.set_inheritable() is not > supported? Can we announce that os.set_inheritable() is always > available or not? Does such platform exist? F

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-28 Thread Nick Coghlan
On 28 July 2013 08:36, Paul Moore wrote: > The PEP for pyz and pwz hasn't been accepted yet. If it does, then yes pyz > should be treated the same way (and we can have the same debate about pwz as > we do about pyw :-)) Oops, thanks for the reminder. I'll nudge Daniel about that :) Cheers, Nick.

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-28 Thread Paul Moore
On 28 July 2013 00:30, Steve Dower wrote: > > And if you change the association after the fact, you're presumably just > as capable > > of changing PATHEXT. > > Not if the association is changed by another installer (presumably with > the user's explicit permission). It would be very easy for peo

Re: [Python-Dev] Adding Python scripts to PATHEXT on Windows

2013-07-28 Thread Paul Moore
On 28 July 2013 00:30, Steve Dower wrote: > Another issue to consider is that the modification to PATHEXT can't be > undone when Python is uninstalled, unless each installation adds another > ".PY" and each uninstall removes only one (so my PATHEXT would look like > ...;.PY;.PY;.PY;.PY;.PY;.PY;.P