Re: [Python-3000] pep 3124 plans

2007-07-20 Thread Talin
Phillip J. Eby wrote: > At 07:49 AM 7/20/2007 -0700, Guido van Rossum wrote: >> On 7/19/07, Joe Smith <[EMAIL PROTECTED]> wrote: >>> So the state of the PEP? From the rest of the posts so far, >>> it sounds like there is no real objection to the basic end user API as >>> described in the PEP, >> Ac

Re: [Python-3000] str/unicode tests: pyexpat.c and read(n)

2007-07-20 Thread Fred L. Drake, Jr.
On Saturday 21 July 2007, Joe Gregorio wrote: > Should xml.parsers.expat.XMLParser.ParseFile(file) operate on > both text and binary streams? No. XML is a serialization of a markup language containing Unicode character into an encoded stream. -Fred -- Fred L. Drake, Jr. __

[Python-3000] str/unicode tests: pyexpat.c and read(n)

2007-07-20 Thread Joe Gregorio
Should xml.parsers.expat.XMLParser.ParseFile(file) operate on both text and binary streams? If it should operate on text streams then an issue arises from "read(n)" meaning different things for text and binary streams. If the stream passed in is "text" then read(n) will read 'n' unicode characters

Re: [Python-3000] _heapq.c, etc. (was Re: Heaptypes)

2007-07-20 Thread Greg Ewing
Josiah Carlson wrote: > What made it really annoying is that there was no way to tell the heapq > module not to load the C version so that I could use a generic container. I would say that all such dual-implementation modules should make the specific implementations available under different name

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-20 Thread Greg Ewing
Joe Smith wrote: > If the maintainers of most of the large packages that do imaging are willing > to support this, > and your code is good, I see absolutely no reason why this PEP would not be > accepted. Something that bothers me about it a little is that the core Python/C API seems like the wr

[Python-3000] Need help fixing tests in str/unicode branch

2007-07-20 Thread Guido van Rossum
Thanks to all who helped fixing tests in the str/unicode branch! We're down to about 35 failing tests. I still need help -- especially since we're now getting into territory that I don't know all that well, for example the email package or XML support. The list of unit tests that need help is stil

Re: [Python-3000] _heapq.c, etc. (was Re: Heaptypes)

2007-07-20 Thread Guido van Rossum
On 7/20/07, Blake Winton <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > >> While the pickle/cPickle, StringIO/cStringIO, etc., naming can be > >> a bit annoying, it does give me the choice whether I want it to be > >> fast or flexible. > > I definitely *don't* want to continue the old hab

Re: [Python-3000] _heapq.c, etc. (was Re: Heaptypes)

2007-07-20 Thread Blake Winton
Guido van Rossum wrote: >> While the pickle/cPickle, StringIO/cStringIO, etc., naming can be >> a bit annoying, it does give me the choice whether I want it to be >> fast or flexible. > I definitely *don't* want to continue the old habit of having a slow > and a fast module with different names;

[Python-3000] uuid creation not thread-safe?

2007-07-20 Thread Guido van Rossum
I discovered what appears to be a thread-unsafety in uuid.py. This is in the trunk as well as in 3.x; I'm using the trunk here for easy reference. There's some code around like 395: import ctypes, ctypes.util _buffer = ctypes.create_string_buffer(16) This creates a *global* buffer which i

Re: [Python-3000] pep 3124 plans

2007-07-20 Thread Phillip J. Eby
At 07:49 AM 7/20/2007 -0700, Guido van Rossum wrote: >On 7/19/07, Joe Smith <[EMAIL PROTECTED]> wrote: > > So the state of the PEP? From the rest of the posts so far, > > it sounds like there is no real objection to the basic end user API as > > described in the PEP, > >Actually I want to reserve j

Re: [Python-3000] pep 3124 plans

2007-07-20 Thread Guido van Rossum
On 7/20/07, Joe Smith <[EMAIL PROTECTED]> wrote: > "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On 7/19/07, Joe Smith <[EMAIL PROTECTED]> wrote: > >> So the state of the PEP? From the rest of the posts so far, > >> it sounds like there is no real objection to

Re: [Python-3000] pep 3124 plans

2007-07-20 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/19/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> So the state of the PEP? From the rest of the posts so far, >> it sounds like there is no real objection to the basic end user API as >> described in the PEP, > > A

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-07-20 Thread Guido van Rossum
They shouldn't, really, and I don't care too much about what happens in that case. It may depend on whether the I/O device honors seeks beyond EOF or not. On 7/20/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > How this different from setting the position to the new size? What > should happe

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-07-20 Thread Alexandre Vassalotti
How this different from setting the position to the new size? What should happen when someone call truncate() with an argument greater than the current size? Should it do a seek, or nothing? Thanks, -- Alexandre On 7/18/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Unless anyone cares, it sho

Re: [Python-3000] pep 3124 plans

2007-07-20 Thread Guido van Rossum
On 7/19/07, Joe Smith <[EMAIL PROTECTED]> wrote: > So the state of the PEP? From the rest of the posts so far, > it sounds like there is no real objection to the basic end user API as > described in the PEP, Actually I want to reserve judgment on that until the PEP is rewritten to explain and docu

Re: [Python-3000] _heapq.c, etc. (was Re: Heaptypes)

2007-07-20 Thread Guido van Rossum
On 7/20/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > "Guido van Rossum" <[EMAIL PROTECTED]> wrote: > > On 7/19/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > How about instead you help with fixing pickling of datetime objects? > > > This broke when I fixed test_pickle. Rolling back your

[Python-3000] _heapq.c, etc. (was Re: Heaptypes)

2007-07-20 Thread Josiah Carlson
"Guido van Rossum" <[EMAIL PROTECTED]> wrote: > On 7/19/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > How about instead you help with fixing pickling of datetime objects? > > This broke when I fixed test_pickle. Rolling back your changes to > > datetime pickling didn't seem to help. > > Nev