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

2013-09-02 Thread Stephen J. Turnbull
> Glenn writes: > > Steve writes: >> OTOH, if the message is structured >> >> multipart/related >> multipart/alternative >> text/plain >> text/html >> image/png >> image/png >> >> the receiver can infer that the images are related t

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

2013-09-02 Thread Antoine Pitrou
Le Sun, 1 Sep 2013 02:19:48 +1000, Nick Coghlan a écrit : > On 1 Sep 2013 00:10, "Stefan Behnel" wrote: > > > > *bump* > > > > Does this sound like a viable solution? > > This isn't likely to progress until we have Eric's PEP 451 to a point > where it's ready for python-dev discussion and pronou

Re: [Python-Dev] Add a new tracemalloc module to trace memory allocations

2013-09-02 Thread Antoine Pitrou
Le Sun, 1 Sep 2013 11:36:51 +1000, Nick Coghlan a écrit : > +1 from me for both tracemalloc and failmalloc in the same vein as > faulthandler (and using similar API concepts to faulthandler). > > While I like the flat top level naming structure, we should clearly > document these as implementatio

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

2013-09-02 Thread Antoine Pitrou
Le Sun, 1 Sep 2013 18:02:30 -0700, Eli Bendersky a écrit : > 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 s

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

2013-09-02 Thread Nick Coghlan
On 2 September 2013 18:16, Antoine Pitrou wrote: > Le Sun, 1 Sep 2013 02:19:48 +1000, > Nick Coghlan a écrit : >> On 1 Sep 2013 00:10, "Stefan Behnel" wrote: >> > >> > *bump* >> > >> > Does this sound like a viable solution? >> >> This isn't likely to progress until we have Eric's PEP 451 to a p

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

2013-09-02 Thread Eli Bendersky
On Mon, Sep 2, 2013 at 1:24 AM, Antoine Pitrou wrote: > Le Sun, 1 Sep 2013 18:02:30 -0700, > Eli Bendersky a écrit : > > 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 d

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

2013-09-02 Thread Antoine Pitrou
Le Mon, 2 Sep 2013 06:18:31 -0700, Eli Bendersky a écrit : > On Mon, Sep 2, 2013 at 1:24 AM, Antoine Pitrou > wrote: > > > Le Sun, 1 Sep 2013 18:02:30 -0700, > > Eli Bendersky a écrit : > > > Hello, > > > > > > I was looking at the possibility of replacing the SEEK_* > > > constants by IntEnums

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

2013-09-02 Thread Antoine Pitrou
Le Mon, 2 Sep 2013 15:45:22 +0200, Antoine Pitrou a écrit : > Le Mon, 2 Sep 2013 06:18:31 -0700, > Eli Bendersky a écrit : > > On Mon, Sep 2, 2013 at 1:24 AM, Antoine Pitrou > > wrote: > > > > > Le Sun, 1 Sep 2013 18:02:30 -0700, > > > Eli Bendersky a écrit : > > > > Hello, > > > > > > > > I w

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

2013-09-02 Thread Eli Bendersky
On Mon, Sep 2, 2013 at 6:51 AM, Antoine Pitrou wrote: > Le Mon, 2 Sep 2013 15:45:22 +0200, > Antoine Pitrou a écrit : > > Le Mon, 2 Sep 2013 06:18:31 -0700, > > Eli Bendersky a écrit : > > > On Mon, Sep 2, 2013 at 1:24 AM, Antoine Pitrou > > > wrote: > > > > > > > Le Sun, 1 Sep 2013 18:02:30 -

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

2013-09-02 Thread Victor Stinner
2013/9/2 Eli Bendersky : > Yes, now I see a 500 usec difference timed within the Python script. When > timing the whole execution of Python: (...) Can you please provide the list of imported modules by: python -c 'import sys; print(sys.modules)' For python with default options and for python with

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

2013-09-02 Thread Eli Bendersky
On Mon, Sep 2, 2013 at 8:48 AM, Victor Stinner wrote: > 2013/9/2 Eli Bendersky : > > Yes, now I see a 500 usec difference timed within the Python script. When > > timing the whole execution of Python: (...) > > Can you please provide the list of imported modules by: > python -c 'import sys; print(

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

2013-09-02 Thread R. David Murray
On Mon, 02 Sep 2013 16:06:53 +0900, "Stephen J. Turnbull" wrote: > > Glenn writes: > > > Steve writes: > > >> OTOH, if the message is structured > >> > >> multipart/related > >> multipart/alternative > >> text/plain > >> text/html > >> ima

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

2013-09-02 Thread Glenn Linderman
On 9/2/2013 2:40 PM, R. David Murray wrote: I'm still not understanding how the text/plain part*refers* to the related parts. I don't think the text/plain part can refer to the related parts, but, like you, am willing to be educated if there is a way; but while the text/html may be able to if

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

2013-09-02 Thread R. David Murray
On Mon, 02 Sep 2013 15:52:59 -0700, Glenn Linderman wrote: > MUAs tend to be able to display what they produce themselves, but I have > situations where they don't handle what other MUAs produce. > > One nice thing about this email6 toolkit might be the ability to > produce, more easily than b

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

2013-09-02 Thread Stephen J. Turnbull
R. David Murray writes: > I'm still not understanding how the text/plain part *refers* to the > related parts. Like this: "Check out this picture of my dog!" Or this: "The terms of the contract are found in the attached PDF. Please print it and sign it, then return it by carrier pigeon (attac