Benjamin Peterson benja...@python.org added the comment:
BTW, I'm not going to backport this fix, since the implementation does carry
over well to 2.6. Additionally, it is probably an unacceptable change of
behavior in a bug fix release.
--
___
New submission from Florent Xicluna la...@yahoo.fr:
On __exit__(), the 3rd argument exc_value should contain the instance of the
exception.
But in most cases, it contains only the string representation of the exception.
See attached test case.
Same behavior for KeyError, AttributeError,
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file16125/case_contextmanager_exit.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file16126/case_contextmanager_exit.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
Antoine Pitrou pit...@free.fr added the comment:
Indeed, it seems the exception isn't always normalized.
--
nosy: +benjamin.peterson, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
Benjamin Peterson benja...@python.org added the comment:
Has this behavior changed between 2.6 and 2.7?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
Antoine Pitrou pit...@free.fr added the comment:
No, it's also in 2.6.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
___
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
___
Florent Xicluna la...@yahoo.fr added the comment:
Patch.
--
keywords: +patch
stage: test needed - patch review
Added file: http://bugs.python.org/file16137/issue7853_cm_exit.diff
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
Fixed in r77983.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7853
___
10 matches
Mail list logo