[Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks

Toby Dickenson tdickenson at devmail.geminidataloggers.co.uk
Thu May 19 13:43:24 CEST 2005


On Monday 16 May 2005 22:41, Ka-Ping Yee wrote:
>     http://www.python.org/peps/pep-0344.html

|     2.  Whenever an exception is raised, if the exception instance does
|         not already have a '__context__' attribute, the interpreter sets
|         it equal to the thread's exception context.

Should that be "if the exception instance does not already have a __context__ 
attribute or the value of that attribute is None...."

-- 
Toby Dickenson


More information about the Python-Dev mailing list