Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Requirements
============

:OS: Any
:Runtime: Python 2.6, 2.7, 3.2, 3.3 and PyPy.
:Runtime: Python 2.6, 2.7, 3.2, 3.3, 3.4 and PyPy.

Pickling tracebacks
===================
Expand Down Expand Up @@ -233,7 +233,11 @@ How's this useful ? Imagine you're using multiprocessing like this::

>>> import traceback
>>> from multiprocessing import Pool
>>> import multiprocessing.pool
>>> from examples import func_a
>>> # Undo the fix for http://bugs.python.org/issue13831 so that we can
>>> # see the effects of our change.
>>> multiprocessing.pool.ExceptionWithTraceback = lambda e, t: e
>>> pool = Pool()
>>> try:
... for i in pool.map(func_a, range(5)):
Expand All @@ -242,7 +246,7 @@ How's this useful ? Imagine you're using multiprocessing like this::
... print(traceback.format_exc())
...
Traceback (most recent call last):
File "<doctest README.rst[36]>", line 2, in <module>
File "<doctest README.rst[38]>", line 2, in <module>
for i in pool.map(func_a, range(5)):
File "...multiprocessing...pool.py", line ..., in map
...
Expand All @@ -267,7 +271,7 @@ Not very useful is it? Let's sort this out::
... print(traceback.format_exc())
...
Traceback (most recent call last):
File "<doctest README.rst[41]>", line 4, in <module>
File "<doctest README.rst[43]>", line 4, in <module>
i.reraise()
File "...tblib...decorators.py", line ..., in reraise
reraise(self.exc_type, self.exc_value, self.traceback)
Expand Down Expand Up @@ -313,13 +317,13 @@ What if we have a local call stack ?
... except:
... print(traceback.format_exc())
Traceback (most recent call last):
File "<doctest README.rst[46]>", line 2, in <module>
File "<doctest README.rst[48]>", line 2, in <module>
local_2()
File "<doctest README.rst[45]>", line 2, in local_2
File "<doctest README.rst[47]>", line 2, in local_2
local_1()
File "<doctest README.rst[44]>", line 2, in local_1
File "<doctest README.rst[46]>", line 2, in local_1
local_0()
File "<doctest README.rst[43]>", line 5, in local_0
File "<doctest README.rst[45]>", line 5, in local_0
i.reraise()
File "...tblib...decorators.py", line 19, in reraise
reraise(self.exc_type, self.exc_value, self.traceback)
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
py2.7,
py3.2,
py3.3,
py3.4,
pypy

[testenv]
Expand Down Expand Up @@ -34,6 +35,10 @@ deps =
{[base]deps}
[testenv:py3.3]
basepython = python3.3
deps =
{[base]deps}
[testenv:py3.4]
basepython = python3.4
deps =
{[base]deps}
[testenv:pypy]
Expand Down