Re: [Python-Dev] 3.2b2 fails test suite on (my) Windows XP

2011-01-06 Thread Antoine Pitrou
On Wed, 5 Jan 2011 17:56:53 -0600 Brian Curtin brian.cur...@gmail.com wrote: http://bugs.python.org/issue9116 covers this issue. The reason it doesn't fail on any of the build slaves is because they modify a registry value for Windows Error Reporting to not display the pop-up window, or at

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Victor Stinner
Le mercredi 05 janvier 2011 à 23:48 -0500, Alexander Belopolsky a écrit : I would be happy with just if accept2dyear: if 69 = y = 99: y += 1900 elif 0 = y = 68: y += 2000 # call system function with tm_year = y - 1900 Perfect. That's what I

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Victor Stinner
Le jeudi 06 janvier 2011 à 00:10 -0500, Alexander Belopolsky a écrit : If calling specific system functions such as strftime with tm_year 0 is deemed unsafe, we can move the check to where the system function is called. What do you mean by unsafe? Does it crash? On my Linux box, strftime(%Y)

Re: [Python-Dev] [Python-checkins] devguide: Strip out all generic svn instructions from the FAQ. It's not only

2011-01-06 Thread Michael Foord
On 05/01/2011 18:37, Brett Cannon wrote: To those that want to keep those steps in the dev FAQ, go ahead but I recuse myself from maintaining it. Having had so many instances of people asking how do I do this? and me almost always able to go read the dev FAQ has basically made me feel like it is

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread R. David Murray
On Thu, 06 Jan 2011 12:55:24 +0100, Victor Stinner victor.stin...@haypocalc.com wrote: Le jeudi 06 janvier 2011 à 00:10 -0500, Alexander Belopolsky a écrit : If calling specific system functions such as strftime with tm_year 0 is deemed unsafe, we can move the check to where the system

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Victor Stinner
Le jeudi 06 janvier 2011 à 10:47 -0500, R. David Murray a écrit : On Thu, 06 Jan 2011 12:55:24 +0100, Victor Stinner victor.stin...@haypocalc.com wrote: Le jeudi 06 janvier 2011 à 00:10 -0500, Alexander Belopolsky a écrit : If calling specific system functions such as strftime with tm_year

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Eric Smith
On 01/06/2011 11:08 AM, Victor Stinner wrote: Le jeudi 06 janvier 2011 à 10:47 -0500, R. David Murray a écrit : On Thu, 06 Jan 2011 12:55:24 +0100, Victor Stinnervictor.stin...@haypocalc.com wrote: Le jeudi 06 janvier 2011 à 00:10 -0500, Alexander Belopolsky a écrit : If calling specific

Re: [Python-Dev] Implementing strftime Was: Checking input range in time.asctime and time.ctime

2011-01-06 Thread Alexander Belopolsky
On Thu, Jan 6, 2011 at 11:30 AM, Eric Smith e...@trueblade.com wrote: .. Is strftime really so complex that we shouldn't just write our own? I'd be willing to do it. Over the years the platform strftime has caused any number of problems. The last time I looked at it we already have to do some

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Alexander Belopolsky
On Thu, Jan 6, 2011 at 6:47 AM, Victor Stinner victor.stin...@haypocalc.com wrote: Le mercredi 05 janvier 2011 à 23:48 -0500, Alexander Belopolsky a écrit : I would be happy with just    if accept2dyear:        if 69 = y = 99:            y += 1900        elif 0 = y = 68:            y +=

Re: [Python-Dev] devguide: Point out that OS X users need to change examples to use python.exe instead of

2011-01-06 Thread Ned Deily
In article e1pawh0-0001py...@dinsdale.python.org, brett.cannon python-check...@python.org wrote: [...] summary: Point out that OS X users need to change examples to use python.exe instead of python. Once Python is done building you will then have a working build of Python that can be

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread And Clover
On Tue, 2011-01-04 at 03:44 +0100, Victor Stinner wrote: What is this horrible encoding bytes-as-unicode? It is a unicode string decoded from bytes using ISO-8859-1. ISO-8859-1 is the encoding specified by the HTTP RFC, as well as having the happy property of preserving every input byte. PEP

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread Raymond Hettinger
Can you please take a look at http://docs.python.org/dev/whatsnew/3.2.html#pep--python-web-server-gateway-interface-v1-0-1 to see if it accurately recaps the resolution of the WSGI text/bytes issues. I would appreciate any feedback, as it is likely that the whatsnew document will be most

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread Glenn Linderman
On 1/6/2011 3:50 PM, And Clover wrote: ISO-8859-1 is the encoding specified by the HTTP RFC Please could I have the reference to that specification? I only recall ASCII and UTF-8 in my readings of various things HTTP and HTML, for headers, and form data. Naturally data pages can have any

Re: [Python-Dev] 3.2b2 fails test suite on (my) Windows XP

2011-01-06 Thread Dj Gilcrease
On Thu, Jan 6, 2011 at 1:00 AM, Terry Reedy tjre...@udel.edu wrote: On 1/5/2011 8:59 PM, Nick Coghlan wrote: Run 3: -x test_capi test_concurrent_futures Instead of the normal output I expected, I got some of the craziest stuff I have ever seen. Things like    assert main_name not in

Re: [Python-Dev] Checking input range in time.asctime and time.ctime

2011-01-06 Thread Stephen J. Turnbull
R. David Murray writes: I believe that we have had several cases where Windows crashed when out-of-range values were passed to the CRT that other platforms accepted. XEmacs had crashes due to strftime on Windows native with VC++. Never went so far as to BSOD, but a couple of users lost

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread James Y Knight
On Jan 6, 2011, at 8:16 PM, Glenn Linderman wrote: On 1/6/2011 3:50 PM, And Clover wrote: ISO-8859-1 is the encoding specified by the HTTP RFC Please could I have the reference to that specification? I only recall ASCII and UTF-8 in my readings of various things HTTP and HTML, for

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread Stephen J. Turnbull
Glenn Linderman writes: On 1/6/2011 3:50 PM, And Clover wrote: ISO-8859-1 is the encoding specified by the HTTP RFC Please could I have the reference to that specification? RFC 2616 (probably obsolete by now, but IRC ISO 8859/1 is already there IIRC), and I don't think UTF-8 is the

Re: [Python-Dev] [Python-checkins] devguide: Strip out all generic svn instructions from the FAQ. It's not only

2011-01-06 Thread Nick Coghlan
On Thu, Jan 6, 2011 at 10:24 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: I think you have it backwards. The benefit of having a FAQ is not that people read it first (they will almost never do that) but that you have a single place to send them when they ask the questions. It sounds like

Re: [Python-Dev] 3.2b2 fails test suite on (my) Windows XP

2011-01-06 Thread Nick Coghlan
On Thu, Jan 6, 2011 at 4:00 PM, Terry Reedy tjre...@udel.edu wrote: Does it behave itself if you add -x test_capi to the command line? No, it gets worse. Really. Let me summarize a long post. Run 1: normal (as above) Process stops at capi test with Windows error message. Close command

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread Glenn Linderman
On 1/6/2011 7:37 PM, Stephen J. Turnbull wrote: Glenn Linderman writes: On 1/6/2011 3:50 PM, And Clover wrote: ISO-8859-1 is the encoding specified by the HTTP RFC Please could I have the reference to that specification? RFC 2616 (probably obsolete by now, but IRC ISO 8859/1 is

Re: [Python-Dev] PEP 3333: wsgi_string() function

2011-01-06 Thread P.J. Eby
At 04:00 PM 1/6/2011 -0800, Raymond Hettinger wrote: Can you please take a look at http://docs.python.org/dev/whatsnew/3.2.html#pep--python-web-server-gateway-interface-v1-0-1http://docs.python.org/dev/whatsnew/3.2.html#pep--python-web-server-gateway-interface-v1-0-1 to see if it