[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 fast

[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 PyInitial

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 wro

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 Python-Dev@python

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

[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. Mos

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] 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 submissi

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 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 require (at least)

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] 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 lo

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 affect

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 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 y

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

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 kno

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
Interesting. Looks like a bug, really. It's the only function that sets IOError. All others use posix_error which raises an OSError. Maybe tests are a good thing, then? Kristján -Original Message- From: Mark Dickinson [mailto:dicki...@gmail.com] Sent: 15. janúar 2009 17:01 To: Kristján

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 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? It certainly looks

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] 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 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 a b

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 wrote: > However, these: > > == > ERROR: test_ftruncate (test.test_os.TestInvalidFD) > -- > Traceback (mos

[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/t runk/Lib/test: test_datetime.pytest_os.py

2009-01-15 Thread Antoine Pitrou
Kristján Valur Jónsson 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 should first

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 h

[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 Python-Dev@py

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: test_ftrunca

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 >

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 do