[issue31213] __context__ reset to None in nested exception

2017-08-15 Thread Christopher Stelma
Christopher Stelma added the comment: crosslink to related future lib issue that led me to this: https://github.com/PythonCharmers/python-future/issues/141 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue31213] __context__ reset to None in nested exception

2017-08-15 Thread Christopher Stelma
New submission from Christopher Stelma: When I try to re-raise an exception with a __cause__ inside a nested exception, the __context__ of the outer __context__ appears to be reset to None. e.g. >>> try: ... try: ... raise Exception('foo') ... except Excepti