[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-19 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: I am not sure to understand. Can you elaborate? How is memory management different between windows and unix? Removing the if win32 bits will not make shared ctypes objects picklable on unix. Even on windows there are only picklable in the context

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: This patch to sharedctypes should fix the problem by adding a __reduce_ex__() method to a shared ctype object instead of using copy_reg. -- keywords: +patch Added file: http://bugs.python.org/file10652/sharedctypes.py.patch

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: But why this is win32 specific? Is it because windows cannot fork(), so data has to be copied through the pickle mechanism? In this case let's remove the if win32 statement, and always execute the body. Yes, on Windows pickling is needed

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-14 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: I suspect the problems with WithManagerTestCondition.notify_all() may have to do with the thread safety of the proxies. If you replace Thread(...) by self.Process(...) in that test then the problem may go away

[issue2475] Popen.poll always returns None

2008-04-03 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: The problem is that os.wait() does not play nicely with subprocess.py. Popen.poll() and Popen.wait() use os.waitpid(pid, ...) which will raise OSError if pid has already been reported by os.wait(). Popen.poll() swallows OSError and by default

[issue1683] Thread local storage and PyGILState_* mucked up by os.fork()

2008-01-06 Thread roudkerk
roudkerk added the comment: The included patch against python2.51 fixes the problem for me. -- versions: +Python 2.6, Python 3.0 Added file: http://bugs.python.org/file9076/fork-thread-patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1683

[issue1683] Thread local storage and PyGILState_* mucked up by os.fork()

2007-12-21 Thread roudkerk
New submission from roudkerk: I got a report that one of the tests for processing (http://cheeseshop.python.org/pypi/processing) was failing with Fatal Python error: Invalid thread state for this thread when run with a debug interpreter. This appears to be caused by the interaction

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-15 Thread roudkerk
roudkerk added the comment: From Guido's patch: if (!DuplicateHandle(GetCurrentProcess(), (HANDLE)handle, GetCurrentProcess(), newhandle, 0, FALSE, DUPLICATE_SAME_ACCESS)) { WSASetLastError(GetLastError

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-15 Thread roudkerk
roudkerk added the comment: Currently on Windows set_error() make use of a large array which maps socket error numbers to error messages. This patch (against socketmodule.c from Python 2.6) removes that array and just lets PyErr_SetExcFromWindowsErr() generate the message by using the Win32

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-04 Thread roudkerk
Changes by roudkerk: -- versions: +Python 2.6 -Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1378 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-03 Thread roudkerk
New submission from roudkerk: The patch adds support for _socket.fromfd() and _socket.socket.dup() on Windows. It uses the Win32 DuplicateHandle() function. The patch is to socketmodule.c an test_socket.py. -- files: socket_fromfd.patch messages: 57084 nosy: roudkerk severity: normal