[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-05 Thread Benjamin Peterson
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. -- ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
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,

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
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 ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
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 ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Antoine Pitrou
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

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
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 ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Antoine Pitrou
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 ___ ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7853 ___ ___

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
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

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
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 ___