Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread Glenn Linderman
On 9/1/2013 8:03 PM, Stephen J. Turnbull wrote: This is getting off-topic IMO; we should probably take this thread to email-sig. Probably, but you didn't :) Glenn Linderman writes: > I recall being surprised when first seeing messages generated by > Apple Mail software, that are multipar

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread Stephen J. Turnbull
This is getting off-topic IMO; we should probably take this thread to email-sig. Glenn Linderman writes: > I recall being surprised when first seeing messages generated by > Apple Mail software, that are multipart/related, having a sequence > of intermixed text/plain and image/jpeg parts. This

Re: [Python-Dev] [Python-checkins] cpython: Issue #11798: fix tests for regrtest -R :

2013-09-01 Thread Andrew Svetlov
regrtest -R runs test suites several times. That's why test cleanup should be disabled for this case. Details discussed in issue. I'll do more expressive commit messages next time. Thanks. On Mon, Sep 2, 2013 at 1:58 AM, Eli Bendersky wrote: > > > > On Sat, Aug 31, 2013 at 9:58 PM, andrew.svetlo

Re: [Python-Dev] cpython (merge 3.3 -> default): Merge fix from 3.3 into default.

2013-09-01 Thread David Bolen
Terry Reedy writes: > On 9/1/2013 5:04 PM, Antoine Pitrou wrote: >> Probably because they don't have the hgeol extension enabled. Yes, I believe that's correct, at least for my Windows buildbots. > Since the tests also failed on installed Python, it seems that the > .msi installer is created in

[Python-Dev] SEEK_* constants in io and os

2013-09-01 Thread Eli Bendersky
Hello, I was looking at the possibility of replacing the SEEK_* constants by IntEnums, and the first thing that catches attention is that these constants are defined in both Lib/os.py and Lib/io.py; both places also recently started supporting SEEK_HOLE and SEEK_DATA (though here io refers to os.S

Re: [Python-Dev] [Python-checkins] cpython: Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum

2013-09-01 Thread Terry Reedy
On 9/1/2013 6:59 PM, Eli Bendersky wrote: On Sat, Aug 31, 2013 at 4:52 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: On 8/31/2013 6:19 PM, eli.bendersky wrote: [issue #18730] Wrong issue number I think. ___ Oops, yes.

Re: [Python-Dev] 'Subinterpreter' (was Re: Pre-PEP: Redesigning extension modules)

2013-09-01 Thread Terry Reedy
On 9/1/2013 5:13 PM, Stefan Behnel wrote: Antoine Pitrou, 01.09.2013 22:06: On Sun, 01 Sep 2013 16:02:33 -0400 Terry Reedy wrote: Speaking of which, it also doesn't work (well) with subinterpreters: Could someone briefly explain 'subinterpreter' or point me somewhere in the docs? It appears t

Re: [Python-Dev] cpython (merge 3.3 -> default): Merge fix from 3.3 into default.

2013-09-01 Thread Terry Reedy
On 9/1/2013 5:04 PM, Antoine Pitrou wrote: On Sun, 1 Sep 2013 23:02:17 +0200 (CEST) tim.peters wrote: Windows developers: to get the correct line endings in your checkout, delete Lib\test\xmltestdata, and then "hg revert" that directory. Or, in Tortoisehg Workbenck, select the four Workin

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread Glenn Linderman
On 9/1/2013 3:10 PM, R. David Murray wrote: This doesn't work, though, because you could (although you usually won't) have more than one 'text/html' part in a single multipart. I was traveling and your original message is still unread in my queue of "things to look at later" :( I haven't caug

Re: [Python-Dev] [Python-checkins] cpython: Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum

2013-09-01 Thread Eli Bendersky
On Sat, Aug 31, 2013 at 4:52 PM, Terry Reedy wrote: > On 8/31/2013 6:19 PM, eli.bendersky wrote: > >> http://hg.python.org/cpython/**rev/4d604f1f0219 >> changeset: 85482:4d604f1f0219 >> user:Eli Bendersky >> date:Sat Aug 31 15:18:4

Re: [Python-Dev] [Python-checkins] cpython: Issue #11798: fix tests for regrtest -R :

2013-09-01 Thread Eli Bendersky
On Sat, Aug 31, 2013 at 9:58 PM, andrew.svetlov wrote: > http://hg.python.org/cpython/rev/39781c3737f8 > changeset: 85490:39781c3737f8 > user:Andrew Svetlov > date:Sun Sep 01 07:58:41 2013 +0300 > summary: > Issue #11798: fix tests for regrtest -R : > > files: > Lib/test/reg

Re: [Python-Dev] [Python-checkins] cpython: Further reduce the cost of hash collisions by inspecting an additional nearby

2013-09-01 Thread Eli Bendersky
On Sat, Aug 31, 2013 at 9:29 PM, raymond.hettinger < python-check...@python.org> wrote: > http://hg.python.org/cpython/rev/d40a65658ff0 > changeset: 85486:d40a65658ff0 > parent: 85482:4d604f1f0219 > user:Raymond Hettinger > date:Sat Aug 31 21:27:08 2013 -0700 > summary: >

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread R. David Murray
On Sat, 31 Aug 2013 18:57:56 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > But I would certainly appreciate review from anyone so moved, since I > > haven't gotten any yet. > > I'll try to make time for a serious (but obviously partial) review by > Monday. > > I don't k

Re: [Python-Dev] 'Subinterpreter' (was Re: Pre-PEP: Redesigning extension modules)

2013-09-01 Thread Stefan Behnel
Antoine Pitrou, 01.09.2013 22:06: > On Sun, 01 Sep 2013 16:02:33 -0400 > Terry Reedy wrote: >>> Speaking of which, it also doesn't work (well) with subinterpreters: >> >> Could someone briefly explain 'subinterpreter' or point me somewhere in >> the docs? It appears throughout this thread but ther

Re: [Python-Dev] cpython (merge 3.3 -> default): Merge fix from 3.3 into default.

2013-09-01 Thread Antoine Pitrou
On Sun, 1 Sep 2013 23:02:17 +0200 (CEST) tim.peters wrote: > http://hg.python.org/cpython/rev/25211a8b > changeset: 85495:25211a8b > parent: 85493:267e09700978 > parent: 85494:8efcf3c823f9 > user:Tim Peters > date:Sun Sep 01 16:01:46 2013 -0500 > summary: >

Re: [Python-Dev] 'Subinterpreter' (was Re: Pre-PEP: Redesigning extension modules)

2013-09-01 Thread Antoine Pitrou
On Sun, 01 Sep 2013 16:02:33 -0400 Terry Reedy wrote: > > > Speaking of which, it also doesn't work (well) with subinterpreters: > > Could someone briefly explain 'subinterpreter' or point me somewhere in > the docs? It appears throughout this thread but there is no index or > glossary entry.

[Python-Dev] 'Subinterpreter' (was Re: Pre-PEP: Redesigning extension modules)

2013-09-01 Thread Terry Reedy
Speaking of which, it also doesn't work (well) with subinterpreters: Could someone briefly explain 'subinterpreter' or point me somewhere in the docs? It appears throughout this thread but there is no index or glossary entry. -- Terry Jan Reedy

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Antoine Pitrou
On Mon, 2 Sep 2013 00:10:08 +1000 Nick Coghlan wrote: > > $ ./python > Python 3.4.0a1+ (default:575071257c92+, Aug 25 2013, 00:42:17) > [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import atexit > >>> atexit.registe

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread R. David Murray
On Sun, 01 Sep 2013 00:18:59 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > Full validation is something that is currently a "future > > objective". > > I didn't mean it to be anything else. :-) > > > There's infrastructure to do it, but not all of the necessary knowled

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Nick Coghlan
On 1 September 2013 23:03, Antoine Pitrou wrote: > On Sun, 1 Sep 2013 11:28:36 +1000 > Nick Coghlan wrote: >> * PEP 3121 with a size of "0". As above, but avoids the module state APIs >> in order to support reloading. All module state (including type >> cross-references) is stored in hidden state

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Antoine Pitrou
On Sun, 1 Sep 2013 11:28:36 +1000 Nick Coghlan wrote: > * PEP 3121 with a size of "0". As above, but avoids the module state APIs > in order to support reloading. All module state (including type > cross-references) is stored in hidden state (e.g. an instance of a custom > type not exposed to Pyth

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Stefan Behnel
Nick Coghlan, 01.09.2013 14:23: > That means the powers any new extension initialisation API will offer > will be limited to: > > * letting the module know its own name (and other details) > * letting the module explicitly block reloading > * letting the module support loading multiple copies at o

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Nick Coghlan
On 1 September 2013 18:11, Stefan Behnel wrote: > Nick Coghlan, 01.09.2013 03:28: >> On 1 Sep 2013 05:18, "Stefan Behnel" wrote: >>> I can't really remember a case where I could afford the >>> runtime overhead of implementing a wrapper in Python and going through >>> something like ctypes or cffi.

Re: [Python-Dev] Pre-PEP: Redesigning extension modules

2013-09-01 Thread Stefan Behnel
Nick Coghlan, 01.09.2013 03:28: > On 1 Sep 2013 05:18, "Stefan Behnel" wrote: >> I can't really remember a case where I could afford the >> runtime overhead of implementing a wrapper in Python and going through >> something like ctypes or cffi. I mean, testing C libraries with Python >> tools would