Re: [Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise)

2011-07-20 Thread Paul Moore
On 20 July 2011 03:21, Terry Reedy wrote: > Suppose for Windows there were one '.../python' directory wherever the user > first asks it to be put and that all pythons, not just cpython, are > installed in directories below that and that the small startup file is > copied into or linked from the py

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-07-20 Thread Ned Deily
In article , Kerrick Staley wrote: > On Mon, Jul 18, 2011 at 3:03 AM, Ned Deily wrote: > > I think adding the requirement to mandate hard link vs soft link usage > > is an unnecessary and unwarranted attempt at optimization. For > > instance, IIRC, the OS X installers don't use any hard links:

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-07-20 Thread Nick Coghlan
On Wed, Jul 20, 2011 at 4:53 PM, Kerrick Staley wrote: > Nick, can you please apply the patch (will be sent in the following > email) to the PEP SVN as soon as we get the hard-link issue is figured > out? Alternatively, could you provide me write access to just the > pep-0394.txt file so I can upd

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Nick Coghlan
On Wed, Jul 20, 2011 at 1:58 PM, P.J. Eby wrote: > So, without further ado, here it is: I pushed this version up to the PEPs repo, so it now has a number (402) and can be read in prettier HTML format: http://www.python.org/dev/peps/pep-0402/ Cheers, Nick. -- Nick Coghlan   |   ncogh...@gmail.c

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Piotr Ożarowski
+1 (and yay!) -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Glenn Linderman
On 7/19/2011 8:58 PM, P.J. Eby wrote: Standard Library Changes/Additions -- The ``pkgutil`` module should be updated to handle this specification appropriately, including any necessary changes to ``extend_path()``, ``iter_modules()``, etc. Specifically the propos

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/18/2011 6:41 PM, Vinay Sajip wrote: > So I can fix my machine, now that I understand what went wrong > (delete py.exe entries from HCU, and put them in HLM instead). > Then the other problem I have, is why py.exe launched py 2.6.4 > instead of py 3.2.1 when 3.2.1 is ne

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Paul Moore
On 20 July 2011 10:17, Glenn Linderman wrote: > However, the following fails:  py foo.py > It fails, because foo.py is not found.  Instead, I have to specify: py > d:\path\to\foo.py > This is annoying, py should walk the PATH for unqualified files (the Windows > PATH implicitly includes the curren

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 06:46 PM 7/20/2011 +1000, Nick Coghlan wrote: On Wed, Jul 20, 2011 at 1:58 PM, P.J. Eby wrote: > So, without further ado, here it is: I pushed this version up to the PEPs repo, so it now has a number (402) and can be read in prettier HTML format: http://www.python.org/dev/peps/pep-0402/ Te

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 02:24 AM 7/20/2011 -0700, Glenn Linderman wrote: When I read about creating __path__ from sys.path, I immediately thought of the issue of programs that extend sys.path, and the above is the "workaround" for such programs. but it requires such programs to do work, and there are a lot of suc

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Eric V. Smith
On 07/20/2011 08:57 AM, P.J. Eby wrote: > At 06:46 PM 7/20/2011 +1000, Nick Coghlan wrote: >> On Wed, Jul 20, 2011 at 1:58 PM, P.J. Eby wrote: >> > So, without further ado, here it is: >> >> I pushed this version up to the PEPs repo, so it now has a number >> (402) and can be read in prettier HTML

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread R. David Murray
On Tue, 19 Jul 2011 23:58:55 -0400, "P.J. Eby" wrote: > Worse, this is not just a problem for new users: it prevents *anyone* > from easily splitting a package into separately-installable > components. In Perl terms, it would be as if every possible ``Net::`` > module on CPAN had to be bundled u

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Vinay Sajip
Glenn Linderman g.nevcal.com> writes: > Since I don't yet have associations set up that point at the > launcher, I thought I'd play with saying "py" in front of the > command. Why don't you have any associations pointing to the launcher? Did you delete them? If you uninstall and ins

Re: [Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission.

2011-07-20 Thread Éric Araujo
Hi, > changeset: 3903:728660b53208 > user:pje > date:Wed Jul 20 09:56:48 2011 -0400 > summary: > Restore whitespace characters lost via email transmission. > [...] > diff --git a/pep-0402.txt b/pep-0402.txt > --- a/pep-0402.txt > +++ b/pep-0402.txt > @@ -38,13 +38,13 @@ > >

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Neal Becker
I wonder if this fixes the long-standing issue in OS vendor's distributions. In Fedora, for example, there is both arch-specific and non-arch directories: /usr/lib/python2.7 + /usr/lib64/python2.7, for example. Pure python goes into /usr/lib/python2.7, and code including binaries goes into /u

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 10:40 AM 7/20/2011 -0400, Neal Becker wrote: I wonder if this fixes the long-standing issue in OS vendor's distributions. In Fedora, for example, there is both arch-specific and non-arch directories: /usr/lib/python2.7 + /usr/lib64/python2.7, for example. Pure python goes into /usr/lib/pyt

Re: [Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission.

2011-07-20 Thread P.J. Eby
At 04:21 PM 7/20/2011 +0200, Éric Araujo wrote: FYI, reST uses three-space indents, not four (so that blocks align nicely under the leading two dots + one space), so I think the change was intentional. The “Documenting Python” guide tells this (in the standard docs), and I think it applies

Re: [Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission.

2011-07-20 Thread Éric Araujo
Le 20/07/2011 16:40, P.J. Eby a écrit : > PEP 12 prescribes four-space indents for PEPs, actually, wherever it > mentions an specific indentation depth. Ah, thanks. I see in my docutils docs that David Goodger used three and four-space indents (three for indenting the body of a directive, four fo

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Jeff Hardy
On Tue, Jul 19, 2011 at 8:58 PM, P.J. Eby wrote: > The biggest likely exception to the above would be when a piece of > code tries to check whether some package is installed by importing > it.  If this is done *only* by importing a top-level module (i.e., not > checking for a ``__version__`` or so

[Python-Dev] New tests in stable versions

2011-07-20 Thread Éric Araujo
Hello everyone, I’ve seen recent commits in the default branch (3.3) that improve test coverage (for example logging) or add new test files (cgitb, committed by Brian). Do we have a policy of not adding new test files to stable branches? For existing test files that get more tests, is the commit

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Erik
On Wed, Jul 20, 2011 at 11:56 AM, Jeff Hardy wrote: > On Tue, Jul 19, 2011 at 8:58 PM, P.J. Eby wrote: >> The biggest likely exception to the above would be when a piece of >> code tries to check whether some package is installed by importing >> it.  If this is done *only* by importing a top-leve

Re: [Python-Dev] New tests in stable versions

2011-07-20 Thread Victor Stinner
Le 20/07/2011 17:58, Éric Araujo a écrit : Do we have a policy of not adding new test files to stable branches? New logging tests failed during some weeks. If we add new tests, we may also break some stable buildbots. I don't think that we need to add these new tests to a stable version. Vict

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 08:56 AM 7/20/2011 -0700, Jeff Hardy wrote: On Tue, Jul 19, 2011 at 8:58 PM, P.J. Eby wrote: > The biggest likely exception to the above would be when a piece of > code tries to check whether some package is installed by importing > it. If this is done *only* by importing a top-level module

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 12:37 PM 7/20/2011 -0400, Erik wrote: The best solution I can think of would be to have a way for a module to mark itself as "finalized" (I'm not sure if that's the best term--just the first that popped into my head). This would prevent its __path__ from being created or extended in any way.

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-07-20 Thread Kerrick Staley
On Wed, Jul 20, 2011 at 3:28 AM, Nick Coghlan wrote: > Done: http://www.python.org/dev/peps/pep-0394/ Quick question: When I do "svn up", it doesn't show any changes. Has it been switched over to Mercurial recently? Thanks, Kerrick Staley ___ Python-De

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-07-20 Thread Eric Snow
On Wed, Jul 20, 2011 at 12:03 PM, Kerrick Staley wrote: > On Wed, Jul 20, 2011 at 3:28 AM, Nick Coghlan wrote: >> Done: http://www.python.org/dev/peps/pep-0394/ > > Quick question: When I do "svn up", it doesn't show any changes. Has > it been switched over to Mercurial recently? http://hg.pytho

Re: [Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise)

2011-07-20 Thread Terry Reedy
On 7/20/2011 3:22 AM, Paul Moore wrote: On 20 July 2011 03:21, Terry Reedy wrote: Suppose for Windows there were one '.../python' directory wherever the user first asks it to be put and that all pythons, not just cpython, are installed in directories below that and that the small startup file i

Re: [Python-Dev] New tests in stable versions

2011-07-20 Thread Terry Reedy
On 7/20/2011 12:25 PM, Victor Stinner wrote: Le 20/07/2011 17:58, Éric Araujo a écrit : Do we have a policy of not adding new test files to stable branches? New logging tests failed during some weeks. If we add new tests, we may also break some stable buildbots. I don't think that we need to ad

Re: [Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission.

2011-07-20 Thread Georg Brandl
On 07/20/11 17:05, Éric Araujo wrote: > Le 20/07/2011 16:40, P.J. Eby a écrit : >> PEP 12 prescribes four-space indents for PEPs, actually, wherever it >> mentions an specific indentation depth. > > Ah, thanks. I see in my docutils docs that David Goodger used three and > four-space indents (thre

Re: [Python-Dev] [Python-checkins] cpython: #665194: support roundtripping RFC2822 date stamps in the email.utils module

2011-07-20 Thread Terry Reedy
On 7/20/2011 11:41 AM, r.david.murray wrote: diff --git a/Lib/email/utils.py b/Lib/email/utils.py # We need wormarounds for bugs in these methods in older Pythons (see below) Is 'wormaround' (variation of workaround) an intentional play on the fact that some worms prey on other 'bugs' ;-

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Eric Snow
On Wed, Jul 20, 2011 at 11:04 AM, P.J. Eby wrote: > Hm.  Here's another variant that might be easier to implement (even in C), > and could offer some other advantages as well. > > Suppose we replace the sys.virtual_packages set() with a sys.virtual_paths > dict(): a dictionary that maps from modul

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Terry Reedy
On 7/20/2011 1:04 PM, P.J. Eby wrote: This part worries me slightly. Imagine a program as such: datagen.py json/foo.js json/bar.js datagen.py uses the files in json/ to generate sample data for a database. In datagen.py is the following code: try: import json except ImportError: import simple

Re: [Python-Dev] [Python-checkins] cpython: #665194: support roundtripping RFC2822 date stamps in the email.utils module

2011-07-20 Thread Antoine Pitrou
On Wed, 20 Jul 2011 14:12:42 -0400 Terry Reedy wrote: > On 7/20/2011 11:41 AM, r.david.murray wrote: > > > diff --git a/Lib/email/utils.py b/Lib/email/utils.py > > > # We need wormarounds for bugs in these methods in older Pythons (see > > below) > > Is 'wormaround' (variation of workaround)

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 01:35 PM 7/20/2011 -0600, Eric Snow wrote: This is a really nice solution. So a virtual package is not imported until a submodule of the virtual package is successfully imported Correct... (except for direct import of pure virtual packages). Not correct. ;-) What we do is avoid creati

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Eric Snow
On Wed, Jul 20, 2011 at 2:44 PM, P.J. Eby wrote: > At 01:35 PM 7/20/2011 -0600, Eric Snow wrote: >> >> This is a really nice solution.  So a virtual package is not imported >> until a submodule of the virtual package is successfully imported > > Correct... > >> (except for direct import of pure vi

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/20/2011 7:19 AM, Vinay Sajip wrote: Glenn Linderman g.nevcal.com> writes: Since I don't yet have associations set up that point at the launcher, I thought I'd play with saying "py" in front of the command. Why don't you have any associations pointing to the launcher? Did

Re: [Python-Dev] [Python-checkins] cpython: #665194: support roundtripping RFC2822 date stamps in the email.utils module

2011-07-20 Thread R. David Murray
On Wed, 20 Jul 2011 22:40:17 +0200, Antoine Pitrou wrote: > On Wed, 20 Jul 2011 14:12:42 -0400 > Terry Reedy wrote: > > On 7/20/2011 11:41 AM, r.david.murray wrote: > > > > > diff --git a/Lib/email/utils.py b/Lib/email/utils.py > > > > > # We need wormarounds for bugs in these methods in olde

Re: [Python-Dev] New tests in stable versions

2011-07-20 Thread Vinay Sajip
Victor Stinner haypocalc.com> writes: > New logging tests failed during some weeks. If we add new tests, we may > also break some stable buildbots. I don't think that we need to add > these new tests to a stable version. Just for my information, which logging test failures are you referring to

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Glenn Linderman
On 7/20/2011 6:05 AM, P.J. Eby wrote: At 02:24 AM 7/20/2011 -0700, Glenn Linderman wrote: When I read about creating __path__ from sys.path, I immediately thought of the issue of programs that extend sys.path, and the above is the "workaround" for such programs. but it requires such programs

Re: [Python-Dev] New tests in stable versions

2011-07-20 Thread Brett Cannon
On Wed, Jul 20, 2011 at 11:48, Terry Reedy wrote: > On 7/20/2011 12:25 PM, Victor Stinner wrote: > >> Le 20/07/2011 17:58, Éric Araujo a écrit : >> >>> Do we have a policy of not adding new test files to stable branches? >>> >> New logging tests failed during some weeks. If we add new tests, we m

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Ethan Furman
Glenn Linderman wrote: On 7/20/2011 7:19 AM, Vinay Sajip wrote: It's not py's job to walk the path: the shell does that when you just type "foo". It locates foo.py, and then invokes py because of file association - py then checks the file for a shebang to decide which Python to dispatch it to.

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 03:22 PM 7/20/2011 -0600, Eric Snow wrote: On Wed, Jul 20, 2011 at 2:44 PM, P.J. Eby wrote: > > So, yeah, actually, that's looking pretty sweet. Basically, we just have to > throw a virtual_package_paths dict into the sys module, and do the above > along with the get_virtual_path() functio

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread P.J. Eby
At 03:09 PM 7/20/2011 -0700, Glenn Linderman wrote: On 7/20/2011 6:05 AM, P.J. Eby wrote: At 02:24 AM 7/20/2011 -0700, Glenn Linderman wrote: When I read about creating __path__ from sys.path, I immediately thought of the issue of programs that extend sys.path, and the above is the "workaround

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Glenn Linderman
On 7/20/2011 4:03 PM, P.J. Eby wrote: I'd recommend *always* using it, outside of simple startup code. So that is a burden on every program. Documentation would help, but it certainly makes updating sys.path much more complex -- 3 lines (counting import of pkgutil) instead of one, and the co

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Mark Hammond
On 21/07/2011 7:43 AM, Glenn Linderman wrote: ... I still get the same behavior. Is there any debugging output produced by py.exe that would tell what py.ini it looks in, and what the content is? What diagnostic steps might I take to produce additional information that would help you (or me, a

Re: [Python-Dev] New tests in stable versions

2011-07-20 Thread Nick Coghlan
On Thu, Jul 21, 2011 at 8:16 AM, Brett Cannon wrote: > I say don't add new tests for the sake of coverage or adding new tests to > stable branches. Tests for bugfixes are practically required. I don't *object* to enhanced tests going into maintenance branches, but the workflow of committing direc

Re: [Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise)

2011-07-20 Thread Mark Hammond
On 21/07/2011 4:38 AM, Terry Reedy wrote: Many installers first make an organization directory and then an app directory within that. This annoys me sometimes when they only have one app to ever install, but is useful when there might really be multiple directories, as in our case. (Ditto for st

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/20/2011 4:41 PM, Mark Hammond wrote: On 21/07/2011 7:43 AM, Glenn Linderman wrote: ... I still get the same behavior. Is there any debugging output produced by py.exe that would tell what py.ini it looks in, and what the content is? What diagnostic steps might I take to produce additiona

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Nick Coghlan
On Thu, Jul 21, 2011 at 8:51 AM, Ethan Furman wrote: > I would say that would be a cool enhancement, as it could save a bit of > typing, but I think the launcher is quite useful even without path > traversal. Two related points: 1. Walking PATH isn't necessary, but the cwd of the py process shou

Re: [Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise)

2011-07-20 Thread Antoine Pitrou
On Thu, 21 Jul 2011 09:55:28 +1000 Mark Hammond wrote: > > > The two proposals > > overlap but are not mutually exclusive. For future pythons, 'python33' > > is easier to remember and type than 'py -v 3.3' or whatever the proposed > > encantation is. > > 'py -3.3' - less chars to type than 'pyt

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Mark Hammond
On 21/07/2011 10:02 AM, Glenn Linderman wrote: So this tells me that it didn't find a local py.ini (no surprise, I don't have one) but doesn't tell me that it did find or read c:\Windows\system32\py.ini much less whether I have the syntax correct for my [defaults] section. It doesn't tell me tha

Re: [Python-Dev] Python launcher command line usage (Was: 3.2.1 encoding surprise)

2011-07-20 Thread Mark Hammond
On 21/07/2011 10:08 AM, Antoine Pitrou wrote: On Thu, 21 Jul 2011 09:55:28 +1000 Mark Hammond wrote: > The two proposals overlap but are not mutually exclusive. For future pythons, 'python33' is easier to remember and type than 'py -v 3.3' or whatever the proposed encantation is. 'py -3.

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/20/2011 2:43 PM, Glenn Linderman wrote: It's not py's job to walk the path: the shell does that when you just type "foo". It locates foo.py, and then invokes py because of file association - py then checks the file for a shebang to decide which Python to dispatch it to. Certainly when the

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/20/2011 5:07 PM, Nick Coghlan wrote: On Thu, Jul 21, 2011 at 8:51 AM, Ethan Furman wrote: I would say that would be a cool enhancement, as it could save a bit of typing, but I think the launcher is quite useful even without path traversal. Two related points: 1. Walking PATH isn't necess

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Glenn Linderman
On 7/20/2011 5:11 PM, Mark Hammond wrote: On 21/07/2011 10:02 AM, Glenn Linderman wrote: So this tells me that it didn't find a local py.ini (no surprise, I don't have one) but doesn't tell me that it did find or read c:\Windows\system32\py.ini much less whether I have the syntax correct for my

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Mark Hammond
On 21/07/2011 10:13 AM, Glenn Linderman wrote: On 7/20/2011 2:43 PM, Glenn Linderman wrote: It's not py's job to walk the path: the shell does that when you just type "foo". It locates foo.py, and then invokes py because of file association - py then checks the file for a shebang to decide which

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Mark Hammond
On 21/07/2011 10:18 AM, Glenn Linderman wrote: On 7/20/2011 5:07 PM, Nick Coghlan wrote: On Thu, Jul 21, 2011 at 8:51 AM, Ethan Furman wrote: I would say that would be a cool enhancement, as it could save a bit of typing, but I think the launcher is quite useful even without path traversal. T

[Python-Dev] Indentation in reStructuredText documents (was: [Python-checkins] peps: Restore whitespace characters lost via email transmission.)

2011-07-20 Thread Ben Finney
Éric Araujo writes: > FYI, reST uses three-space indents, not four (so that blocks align > nicely under the leading two dots + one space), so I think the change > was intentional. No, reST doesn't specify any particular level of indentation. Like most Python programmers I prefer four-space inden

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Nick Coghlan
On Thu, Jul 21, 2011 at 9:03 AM, P.J. Eby wrote: > Hm.  Yes, there is a way to do something like that, but it would complicate > things a bit.  We'd need to: > > 1. Leave __path__ off of the modules, and always pull them from > sys.virtual_package_paths, and Setting __path__ to a sentinel value (

Re: [Python-Dev] Indentation in reStructuredText documents (was: [Python-checkins] peps: Restore whitespace characters lost via email transmission.)

2011-07-20 Thread Brian Curtin
On Wed, Jul 20, 2011 at 20:31, Ben Finney wrote: > Éric Araujo writes: > > > FYI, reST uses three-space indents, not four (so that blocks align > > nicely under the leading two dots + one space), so I think the change > > was intentional. > > No, reST doesn't specify any particular level of inden

Re: [Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

2011-07-20 Thread Eric Snow
On Wed, Jul 20, 2011 at 7:52 PM, Nick Coghlan wrote: > Even better would be for these (and sys.path) to be list subclasses > that did the right thing under the hood as Glenn suggested. Code that > *replaces* rather than modifies these attributes would still > potentially break virtual packages, bu

Re: [Python-Dev] [Python-checkins] cpython: #665194: support roundtripping RFC2822 date stamps in the email.utils module

2011-07-20 Thread Stephen J. Turnbull
R. David Murray writes: > Hexlify, wormaround...our Barry is just full of interesting words :) Not "full" at all---there's no there there to put them in. He's a generator! The FLUFL-always-uses-efficient-idioms-ly y'rs, ___ Python-Dev mailing list Py

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread R. David Murray
On Thu, 21 Jul 2011 10:27:31 +1000, Mark Hammond wrote: > On 21/07/2011 10:18 AM, Glenn Linderman wrote: > > On 7/20/2011 5:07 PM, Nick Coghlan wrote: > >> On Thu, Jul 21, 2011 at 8:51 AM, Ethan Furman wrote: > >>> I would say that would be a cool enhancement, as it could save a bit of > >>> typ

Re: [Python-Dev] 3.2.1 encoding surprise

2011-07-20 Thread Nick Coghlan
On Thu, Jul 21, 2011 at 12:52 PM, R. David Murray wrote: > Indeed.  If I want to run a script with a different python version > on a unix-like system, I need to know the path to said script. > We're trying to make python as easy to use on Windows as it is on Unix. > If find-script-on-path is consi

Re: [Python-Dev] Issue10271 - warnings.showwarning should allow any callable object - request commiter

2011-07-20 Thread lekmalek
On Sun, 17 Jul 2011 19:19:59 -0700 Brett Cannon wrote: > Just so people know, I went ahead and fixed this for 3.3 (but not for > 3.2 since it changes the API in a subtle way). Yeah, but that shouldn't break anything. Anyway, thanks a lot for your help, I'm happy it's in 3.3. lekma > > On Sat,

[Python-Dev] New update to PEP397 - Python launcher for Windows

2011-07-20 Thread Mark Hammond
I've updated PEP 397 - "Python launcher for Windows" based on recent discussions and Vinay's implementation. http://www.python.org/dev/peps/pep-0397/ and a copy is attached for your convenience. The main changes are: * All mentions of the Python reference implementation have been removed no