Re: [Python-Dev] [Python-3000] Backporting multiprocessing?
Christian> I just implemented the recv_bytes_into function with the old Christian> buffer protocol. All tests are passing on my Linux box Christian> (Ubuntu 8.04 with gcc 4.2, AMD64 processor). Using Python v < 2.6? So I don't need to horse around making test_multiprocessing.py API compatible with processing 0.52? Skip
skip@pobox.com wrote:
Using Python v < 2.6? So I don't need to horse around making test_multiprocessing.py API compatible with processing 0.52?
With Python 2.5.2 and 2.6.0 all tests are passing with any error. With Python 2.4.5 seven tests are failing because 2.4 doesn't support mmap with a negative file number. File ".../python-multiprocessing/Lib/multiprocessing/heap.py", line 56, in __init__ self.buffer = mmap.mmap(-1, size) EnvironmentError: [Errno 9] Bad file descriptor Christian
skip@pobox.com wrote:
Using Python v < 2.6? So I don't need to horse around making test_multiprocessing.py API compatible with processing 0.52?
I've backported the Python 2.5 svn version of mmap to 2.4 and added it as multiprocessing._mmap25. The port is just a proof of concept and most like contains issues with ssize_t -> long transitions. But it's working. With the latest svn checkout all tests are passing for 2.4.5, 2.5.2 and 2.6.0 on my 64bit Ubuntu box. Somebody needs to test it on Windows, 32bit Linux and BSD. Christian
The latest svn version is now working with Python 2.4.4, Python 2.5.2 and Python 2.6.0 on Linux (Ubuntu AMD64, Debian i386) and Windows XP. On Windows the multiprocessing module requires ctypes and pywin32 under Python 2.4.4. Some of the examples aren't working correctly under 2.4 and 2.5. Jesse is looking into it. Christian
participants (2)
-
Christian Heimes
-
skip@pobox.com