Re: [Python-Dev] socket.create_connection slow

2009-01-15 Thread Kristján Valur Jónsson
Right, there is no way to try to simultaneously connect using ipv4 and ipv6, apparently. Also, the problem with setting the registry TcpConnectMaxRetries registry entry is that it also affects retries wen no ACK is received. This is probably something one doesn't want to mess with. Okay, so

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Jeroen Ruigrok van der Werven
-On [20090115 01:11], Guido van Rossum (gu...@python.org) wrote: I'm with Martin. In these days of distributed version control systems, I would think that the effort for the Haiku folks to maintain a branch of Python in their own version control would be minimal. It is likely that for each new

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Kristján Valur Jónsson
Ok, in r 68610 I fixed some of this. The strftime test is now just an excercise, since clearly some platforms accept the %e without hesitation. Also, there were errors in two test_os cases. However, these: == ERROR:

[Python-Dev] Help

2009-01-15 Thread 崔志勇
First of all,I'm so sorry for that my english is so poor that I can't use it freely. Can you tell me how can I install the Python3.0 on my computer with the Red Hat Enterprise 5? Thank you! cuizhiyong 2009-1-15 ___ Python-Dev mailing list

Re: [Python-Dev] Help

2009-01-15 Thread skip
Can you tell me how can I install the Python3.0 on my computer with the Red Hat Enterprise 5? You should ask this question on one of these three mailing lists: python-l...@python.org h...@python.org tu...@python.org This mailing list discusses Python development not how

Re: [Python-Dev] [Python-checkins] r68547 - in python/t runk/Lib/test: test_datetime.pytest_os.py

2009-01-15 Thread Antoine Pitrou
Kristján Valur Jónsson kristjan at ccpgames.com writes: Seem bogus. For ftruncate, an invalid filedescriptor really should return OSError, and close(10) should raise an OSError as well. It seems wrong to assume that 10 is an invalid file descriptor at the time of running the test. IMO you

[Python-Dev] imap bodystructure parser - email.message.Message extension

2009-01-15 Thread Stéphane Konstantaropoulos
Hello, I wrote an extension to the imaplib library that implements a BODYSTRUCTURE parser. For this I wrote an extension to email.message.Message that allows a message structure to be loaded from imap, the message can be used like a normal email.message.Message but the actual payload is only

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
On Thu, Jan 15, 2009 at 9:13 AM, Kristján Valur Jónsson krist...@ccpgames.com wrote: However, these: == ERROR: test_ftruncate (test.test_os.TestInvalidFD) --

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Guido van Rossum
On Thu, Jan 15, 2009 at 1:00 AM, Jeroen Ruigrok van der Werven asmo...@in-nomine.org wrote: -On [20090115 01:11], Guido van Rossum (gu...@python.org) wrote: I'm with Martin. In these days of distributed version control systems, I would think that the effort for the Haiku folks to maintain

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Kristján Valur Jónsson
Well, all the other functions raise OSError when the file descriptor is invalid. IOError usually means that the IO itself failed. I wonder if it is platform specific? Does it raise IOError on all platforms? I can also change the test to test for IOError or OSError. K -Original Message-

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
On Thu, Jan 15, 2009 at 4:19 PM, Kristján Valur Jónsson krist...@ccpgames.com wrote: Well, all the other functions raise OSError when the file descriptor is invalid. IOError usually means that the IO itself failed. I wonder if it is platform specific? Does it raise IOError on all platforms?

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Senthil Kumaran
Jeroen Ruigrok van der Werven wrote: actively working on POSIX compliance. My only guess right now is that this work is largely complete. In effect that would mean that Python would work out of the box, more or less. So the cost of adding and maintaining it in This is very interesting to know.

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Jeroen Ruigrok van der Werven
-On [20090115 16:53], Guido van Rossum (gu...@python.org) wrote: Did you look at the patch they submitted? http://bugs.python.org/issue4933 I did now (python-2.5.4-haiku-2.diff). I am not sure what you are implying though, Guido. It doesn't look like a huge change and most of it is close to 'one

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Guido van Rossum
On Thu, Jan 15, 2009 at 9:23 AM, Jeroen Ruigrok van der Werven asmo...@in-nomine.org wrote: -On [20090115 16:53], Guido van Rossum (gu...@python.org) wrote: Did you look at the patch they submitted? http://bugs.python.org/issue4933 I did now (python-2.5.4-haiku-2.diff). I am not sure what you

Re: [Python-Dev] socket.create_connection slow

2009-01-15 Thread Martin v. Löwis
Right, there is no way to try to simultaneously connect using ipv4 and ipv6, apparently. Ah, I see what you meant. No, this cannot work - what if you get positive ACKs on both protocols? Also, the problem with setting the registry TcpConnectMaxRetries registry entry is that it also affects

Re: [Python-Dev] imap bodystructure parser - email.message.Message extension

2009-01-15 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 15, 2009, at 7:58 AM, Stéphane Konstantaropoulos wrote: I wrote an extension to the imaplib library that implements a BODYSTRUCTURE parser. For this I wrote an extension to email.message.Message that allows a message structure to be

Re: [Python-Dev] Support for the Haiku OS

2009-01-15 Thread Martin v. Löwis
I don't see such a commitment in this case, but if a believable one comes up I'm sure Martin would happily revert his position. Indeed. I have myself added support for AtheOS, even though I had never used the system. The AtheOS maintainer ran away, the code rotted, and eventually get ripped

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
On Thu, Jan 15, 2009 at 5:06 PM, Kristján Valur Jónsson krist...@ccpgames.com wrote: Interesting. Looks like a bug, really. It's the only function that sets IOError. All others use posix_error which raises an OSError. Maybe. But changing it risks breaking existing code, so would certainly

[Python-Dev] report on building of python 2.5.2 under msys under wine on linux.

2009-01-15 Thread Luke Kenneth Casson Leighton
no, the above subject-line is not a joke: i really _have_ successfully built python2.5.2 by installing wine on linux, then msys under wine, and then mingw32 compiler - no, not the linux mingw32-cross-compiler, the _native_ mingw32 compiler that runs under msys, and then hacking things into

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Kristján Valur Jónsson
Right. I've fixed the remainder, things should quiet down now. K -Original Message- From: Mark Dickinson [mailto:dicki...@gmail.com] Sent: 15. janúar 2009 20:40 To: Kristján Valur Jónsson Cc: Jean-Paul Calderone; python-dev@python.org Subject: Re: [Python-Dev] [Python-checkins] r68547 -

[Python-Dev] Lib/email/header.py ecre regular expression

2009-01-15 Thread Jan Malakhovski
Hello. Welcome message to this mail list said that it's good to tell a few words about myself. So, my name is Jan Malakhovski aka OXIj, I'm living in St. Petersburg, Russia, student of ITMO University, 4th year of education. I have dedicated mail server at home and it holds about 1G of mail.

Re: [Python-Dev] report on building of python 2.5.2 under msys under wine on linux.

2009-01-15 Thread Aahz
On Thu, Jan 15, 2009, Luke Kenneth Casson Leighton wrote: p.s. if anyone would like to try out this build, on a windows box, to see if it fares any better on the regression tests please say so and i will make the binaries available. Don't bother on my account, but please publicize the URL if

Re: [Python-Dev] report on building of python 2.5.2 under msys under wine on linux.

2009-01-15 Thread Luke Kenneth Casson Leighton
practical decision, due to /bin/sh.exe messing around and stopping python.exe from running! (under cmd.exe it's fine. i have to do a bit more investigation: http://bugs.python.org/issue4956 found it. ___ Python-Dev mailing list

Re: [Python-Dev] Lib/email/header.py ecre regular expression

2009-01-15 Thread Aahz
On Fri, Jan 16, 2009, Jan Malakhovski wrote: I have dedicated mail server at home and it holds about 1G of mail. Most of mail is in non UTF-8 codepage, so today I wrote little script that should recode all letters to UTF. But I found that email.header.decode_header parses some headers wrong.

[Python-Dev] [patch] moving file load to AFTER Py_Initialize performed

2009-01-15 Thread Luke Kenneth Casson Leighton
http://bugs.python.org/issue4956 uhn... weird bug, totally left-field scenario (using python under msys under wine under linux) but this rather strange scenario has a situation where loading the filename from the command line cannot be done until _after_ PyInitialize is called. prior to

[Python-Dev] multiprocessing vs. distributed processing

2009-01-15 Thread James Mills
I've noticed over the past few weeks lots of questions asked about multi-processing (including myself). For those of you new to multi-processing, perhaps this thread may help you. Some things I want to start off with to point out are: multiprocessing will not always help you get things done