Re: [Python-Dev] 'with' __exit__ doesn't set sys.exc_info()

2007-12-18 Thread Guido van Rossum
Since no actual except clause is used, this is reasonable, and I wouldn't want it changed. I guess the PEP overstated the exactness of the translation. Suggestions for better wording are accepted. On Dec 18, 2007 10:11 AM, Mike Stall <[EMAIL PROTECTED]> wrote: > > > > > Can somebody confirm the fo

[Python-Dev] 'with' __exit__ doesn't set sys.exc_info()

2007-12-18 Thread Mike Stall
Can somebody confirm the following behavior is expected: When a 'with' statement invokes __exit__(), it looks like sys.exc_info() is not actually set. I know this may be a very pedantic detail, but I'm working on IronPython and would like to make it consistent with CPython's behavior. The PEP