# HG changeset patch # User Paul Boddie # Date 1388879783 -3600 # Node ID c5c3cddeabcca2fe964da7a7093081883c75dd5f # Parent 6c8d12f35c554020da1a2fde4b373ef17becb6b7 Added IOError handling when processes exit apparently without warning. diff -r 6c8d12f35c55 -r c5c3cddeabcc PKG-INFO --- a/PKG-INFO Fri Jul 17 00:48:26 2009 +0200 +++ b/PKG-INFO Sun Jan 05 00:56:23 2014 +0100 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: pprocess -Version: 0.5 +Version: 0.5.1 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie Maintainer-email: paul at boddie org uk Home-page: http://www.boddie.org.uk/python/pprocess.html -Download-url: http://www.boddie.org.uk/python/downloads/pprocess-0.5.tar.gz +Download-url: http://www.boddie.org.uk/python/downloads/pprocess-0.5.1.tar.gz Summary: Elementary parallel programming for Python License: LGPL (version 3 or later) Description: The pprocess module provides elementary support for parallel diff -r 6c8d12f35c55 -r c5c3cddeabcc README.txt --- a/README.txt Fri Jul 17 00:48:26 2009 +0200 +++ b/README.txt Sun Jan 05 00:56:23 2014 +0100 @@ -167,6 +167,11 @@ available only on "UNIX"; it has only been tested repeatedly on a GNU/Linux system, and occasionally on systems running OpenSolaris. +New in pprocess 0.5.1 (Changes since pprocess 0.5) +-------------------------------------------------- + + * Added IOError handling when processes exit apparently without warning. + New in pprocess 0.5 (Changes since pprocess 0.4) ------------------------------------------------ diff -r 6c8d12f35c55 -r c5c3cddeabcc docs/COPYING.txt --- a/docs/COPYING.txt Fri Jul 17 00:48:26 2009 +0200 +++ b/docs/COPYING.txt Sun Jan 05 00:56:23 2014 +0100 @@ -1,7 +1,8 @@ Licence Agreement for parallel/pprocess --------------------------------------- -Copyright (C) 2005, 2006, 2007, 2008, 2009 Paul Boddie +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2013 Paul Boddie +Copyright (C) 2013 Yaroslav Halchenko This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free diff -r 6c8d12f35c55 -r c5c3cddeabcc pprocess.py --- a/pprocess.py Fri Jul 17 00:48:26 2009 +0200 +++ b/pprocess.py Sun Jan 05 00:56:23 2014 +0100 @@ -4,7 +4,8 @@ A simple parallel processing API for Python, inspired somewhat by the thread module, slightly less by pypar, and slightly less still by pypvm. -Copyright (C) 2005, 2006, 2007, 2008, 2009 Paul Boddie +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2013 Paul Boddie +Copyright (C) 2013 Yaroslav Halchenko This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free @@ -20,7 +21,7 @@ with this program. If not, see . """ -__version__ = "0.5" +__version__ = "0.5.1" import os import sys @@ -28,6 +29,8 @@ import socket import platform +from warnings import warn + try: import cPickle as pickle except ImportError: @@ -396,8 +399,12 @@ if self.active(): for channel in self.ready(timeout): - self.store_data(channel) - self.start_waiting(channel) + try: + self.store_data(channel) + self.start_waiting(channel) + except IOError, exc: + self.remove(channel) + warn("Removed channel %r due to IOError: %s" % (channel, exc)) # Or schedule new processes and channels. diff -r 6c8d12f35c55 -r c5c3cddeabcc setup.py --- a/setup.py Fri Jul 17 00:48:26 2009 +0200 +++ b/setup.py Sun Jan 05 00:56:23 2014 +0100 @@ -8,6 +8,6 @@ author = "Paul Boddie", author_email = "paul@boddie.org.uk", url = "http://www.boddie.org.uk/python/pprocess.html", - version = "0.5", + version = "0.5.1", py_modules = ["pprocess"] )