Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Georg Brandl
Am 29.05.2012 01:15, schrieb mar...@v.loewis.de: >> Comments welcome, especially on whether Windows users agree that >> something like this is needed in the absence of PEP 397 in Python 3.3. > > AFAICT, there is no need to check in the binary into revision control. > Instead, the Windows build p

Re: [Python-Dev] Missing command line documentation for new tools

2012-05-28 Thread Terry Reedy
On 5/28/2012 10:31 PM, Nick Coghlan wrote: Given an exchange on the tracker, I feel I should expand on this point. Historically, our Setup& Usage documentation has *only* covered the main Python executable, even though we actually install additional tools, including pydoc, idle, 2to3 and now p

Re: [Python-Dev] [Python-checkins] cpython: Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.

2012-05-28 Thread Nick Coghlan
On Tue, May 29, 2012 at 1:03 PM, eli.bendersky wrote: > http://hg.python.org/cpython/rev/7d252dbfbee3 > changeset:   77217:7d252dbfbee3 > user:        Eli Bendersky > date:        Tue May 29 06:02:56 2012 +0300 > summary: >  Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtr

Re: [Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.

2012-05-28 Thread Terry Reedy
On 5/28/2012 9:48 PM, Brian Curtin wrote: > On Mon, May 28, 2012 at 8:44 PM, Terry Reedy wrote: snipped context: return eval(user_entered_expression, namespace) +except: return None >>> >>> >>> "except Exception" may be better here. >> >> >> Idle's S

Re: [Python-Dev] cpython: simplify and rewrite the zipimport part of 702009f3c0b1 a bit

2012-05-28 Thread Guido van Rossum
On Sat, May 26, 2012 at 2:07 AM, Larry Hastings wrote: > > On 05/25/2012 10:14 AM, Antoine Pitrou wrote: > > On Fri, 25 May 2012 18:57:57 +0200 > Georg Brandl wrote: > > This is probably minor, but wouldn't it make more sense to have those > constants uppercased? At least that's the general styl

Re: [Python-Dev] Missing command line documentation for new tools

2012-05-28 Thread Éric Araujo
Le 28/05/2012 22:31, Nick Coghlan a écrit : > Historically, our Setup & Usage documentation has *only* covered the > main Python executable, even though we actually install additional > tools, including pydoc, idle, 2to3 and now pysetup and pyvenv, and > provide additional documented and supported

Re: [Python-Dev] Missing command line documentation for new tools

2012-05-28 Thread Nick Coghlan
On Tue, May 29, 2012 at 9:20 AM, Nick Coghlan wrote: > As the standard library comes to include more directly executed tools, > we really need to focus on keeping the Setup & Usage docs up to date. > The fact we've been historically lax on that front is no excuse for > perpetuating the problem for

Re: [Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.

2012-05-28 Thread Brian Curtin
On Mon, May 28, 2012 at 8:44 PM, Terry Reedy wrote: >>> +            except: >>>                  return None >> >> >> "except Exception" may be better here. > > > Idle's Shell catches all exceptions. I think the attempt to provide an > optional help (a function signature) should too. Can you exp

Re: [Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.

2012-05-28 Thread Terry Reedy
On 5/28/2012 2:53 AM, Georg Brandl wrote: Am 28.05.2012 03:55, schrieb terry.reedy: namespace.update(__main__.__dict__) try: return eval(name, namespace) -except (NameError, AttributeError): +# any exception is possible

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Nick Coghlan
On Tue, May 29, 2012 at 10:07 AM, Carl Meyer wrote: > On 05/28/2012 04:24 PM, Nick Coghlan wrote: >> It would have been better if the issue of script management on Windows >> had been raised in PEP 405 itself - I likely would have declared PEP >> 397 a dependency *before* accepting it (even if tha

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Carl Meyer
On 05/28/2012 04:24 PM, Nick Coghlan wrote: > It would have been better if the issue of script management on Windows > had been raised in PEP 405 itself - I likely would have declared PEP > 397 a dependency *before* accepting it (even if that meant the feature > missed the alpha 4 deadline and firs

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Mark Hammond
Vinay originally wrote: PEP 397 (Python launcher for Windows) has not yet been accepted, so there still needs to be some way of natively launching scripts in Windows which is equivalent to /path/to/venv/bin/foo. The way setuptools (and hence Distribute) does this is to shadow each script with an

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Nick Coghlan
On Tue, May 29, 2012 at 5:37 AM, Vinay Sajip wrote: > Antoine Pitrou pitrou.net> writes: > >> Regardless of what the executable is or does, its source code must be >> included somewhere in the Python source tree (and, preferably, there >> should be a simple procedure to build the binaries). > > I

[Python-Dev] Missing command line documentation for new tools

2012-05-28 Thread Nick Coghlan
The documentation does not currently provide end user guides for pysetup or pyvenv under http://docs.python.org/dev/using/index.html This needs to be fixed before 3.3 is released. I've created the following issues as deferred blockers (since they don't need to be addressed before the alpha this we

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread martin
Comments welcome, especially on whether Windows users agree that something like this is needed in the absence of PEP 397 in Python 3.3. AFAICT, there is no need to check in the binary into revision control. Instead, the Windows build process should create, package, and deploy them, and venv sho

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Antoine Pitrou
On Mon, 28 May 2012 21:23:50 + (UTC) Vinay Sajip wrote: > Antoine Pitrou pitrou.net> writes: > > > Not necessarily, but OTOH, it is not really standard procedure to > > commit half-finished patches. > > I didn't want to miss the window for the upcoming alpha, and and I'm not sure > exactly

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > Not necessarily, but OTOH, it is not really standard procedure to > commit half-finished patches. I didn't want to miss the window for the upcoming alpha, and and I'm not sure exactly how things will pan out with respect to PEP 397 and packaging. If people

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Antoine Pitrou
On Mon, 28 May 2012 19:37:55 + (UTC) Vinay Sajip wrote: > Antoine Pitrou pitrou.net> writes: > > > Regardless of what the executable is or does, its source code must be > > included somewhere in the Python source tree (and, preferably, there > > should be a simple procedure to build the bina

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > Regardless of what the executable is or does, its source code must be > included somewhere in the Python source tree (and, preferably, there > should be a simple procedure to build the binaries). I understand that. Does it need to be checked in right now? It

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Antoine Pitrou
On Mon, 28 May 2012 17:25:10 + (UTC) Vinay Sajip wrote: > > The foo.exe file is just a copy of a stock launcher executable which finds its > name from the C argv[0], and based in that name (foo in this case), invokes > foo-script.py or foo-script.pyw with the appropriate Python interpreter.

[Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
In the recent check-in I made of the PEP 405 functionality, there is a Windows executable. Antoine asked what this was in his comment on the checkin, but I couldn't respond via Gmane (my usual method) as for some reason his post doesn't appear there. PEP 397 (Python launcher for Windows) has not y