summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/dummy/__init__.py
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2008-08-19 19:06:19 (GMT)
committerJesse Noller <jnoller@gmail.com>2008-08-19 19:06:19 (GMT)
commit5bc9f4c09c99eb701dbee83fb9e26eed558e474f (patch)
tree8eea24fb14c899f2d51d3206fa4a9b032159220a /Lib/multiprocessing/dummy/__init__.py
parent7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773 (diff)
downloadcpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.zip
cpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.tar.gz
cpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.tar.bz2
issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
Diffstat (limited to 'Lib/multiprocessing/dummy/__init__.py')
-rw-r--r--Lib/multiprocessing/dummy/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/multiprocessing/dummy/__init__.py b/Lib/multiprocessing/dummy/__init__.py
index f12ac11..73bf218 100644
--- a/Lib/multiprocessing/dummy/__init__.py
+++ b/Lib/multiprocessing/dummy/__init__.py
@@ -47,7 +47,8 @@ class DummyProcess(threading.Thread):
self._parent._children[self] = None
threading.Thread.start(self)
- def get_exitcode(self):
+ @property
+ def exitcode(self):
if self._start_called and not self.is_alive():
return 0
else: