<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/pyerrors.h, branch v2.1a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyerrors.h?h=v2.1a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyerrors.h?h=v2.1a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2000-12-15T21:57:34Z</updated>
<entry>
<title>Add declarations for standard warning category classes (PyExc_Warning</title>
<updated>2000-12-15T21:57:34Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-12-15T21:57:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3fc30372c71b5e6885fd617ad68fc119a09dd5a4'/>
<id>urn:sha1:3fc30372c71b5e6885fd617ad68fc119a09dd5a4</id>
<content type='text'>
etc.) and the PyErr_Warn() function.
</content>
</entry>
<entry>
<title>REMOVED all CWI, CNRI and BeOpen copyright markings.</title>
<updated>2000-09-01T23:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-09-01T23:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8586991099e4ace18ee94163a96b8ea1bed77ebe'/>
<id>urn:sha1:8586991099e4ace18ee94163a96b8ea1bed77ebe</id>
<content type='text'>
This should match the situation in the 1.6b1 tree.
</content>
</entry>
<entry>
<title>refactor __del__ exception handler into PyErr_WriteUnraisable</title>
<updated>2000-09-01T02:47:25Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2000-09-01T02:47:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b709df381034b6055f03644a8f2eb35cfc6cb411'/>
<id>urn:sha1:b709df381034b6055f03644a8f2eb35cfc6cb411</id>
<content type='text'>
add sanity check to gc: if an exception occurs during GC, call
PyErr_WriteUnraisable and then call Py_FatalEror.
</content>
</entry>
<entry>
<title>Improve the exceptions raised by PyErr_BadInternalCall(); adding the</title>
<updated>2000-08-24T22:38:39Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-08-24T22:38:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d63adfbb7e97b218bede1052d3826b3461e9c59'/>
<id>urn:sha1:6d63adfbb7e97b218bede1052d3826b3461e9c59</id>
<content type='text'>
filename and line number of the call site to allow esier debugging.

This closes SourceForge patch #101214.
</content>
</entry>
<entry>
<title>ANSI-fication of the sources -- remove Py_PROTO!</title>
<updated>2000-07-08T17:25:55Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-07-08T17:25:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5c84ede06311f61a21cd5656e8c1ea54c8bfd29'/>
<id>urn:sha1:d5c84ede06311f61a21cd5656e8c1ea54c8bfd29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change copyright notice - 2nd try.</title>
<updated>2000-06-30T23:58:06Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:58:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffcc3813d82e6b96db79f518f4e67b940a13ce64'/>
<id>urn:sha1:ffcc3813d82e6b96db79f518f4e67b940a13ce64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change copyright notice.</title>
<updated>2000-06-30T23:50:40Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:50:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd71b9e9d496caa510dec56a9b69966558d6ba5d'/>
<id>urn:sha1:fd71b9e9d496caa510dec56a9b69966558d6ba5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Marc-Andre Lemburg: add PyExc_UnicodeError</title>
<updated>2000-03-10T22:33:32Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-03-10T22:33:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=99cc97109efd2957c26fe71cbc81f427becb7188'/>
<id>urn:sha1:99cc97109efd2957c26fe71cbc81f427becb7188</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Declarations related to new WindowsError exception.</title>
<updated>2000-02-17T15:17:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-02-17T15:17:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a'/>
<id>urn:sha1:db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch by Tim Peters:</title>
<updated>1999-06-22T14:47:32Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-06-22T14:47:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87460821755ba72294b0c95b7d130b922d2a7ea4'/>
<id>urn:sha1:87460821755ba72294b0c95b7d130b922d2a7ea4</id>
<content type='text'>
Introduce a new builtin exception, UnboundLocalError, raised when ceval.c
tries to retrieve or delete a local name that isn't bound to a value.
Currently raises NameError, which makes this behavior a FAQ since the same
error is raised for "missing" global names too:  when the user has a global
of the same name as the unbound local, NameError makes no sense to them.
Even in the absence of shadowing, knowing whether a bogus name is local or
global is a real aid to quick understanding.

Example:

D:\src\PCbuild&gt;type local.py
x = 42

def f():
    print x
    x = 13
    return x

f()

D:\src\PCbuild&gt;python local.py
Traceback (innermost last):
  File "local.py", line 8, in ?
    f()
  File "local.py", line 4, in f
    print x
UnboundLocalError: x

D:\src\PCbuild&gt;

Note that UnboundLocalError is a subclass of NameError, for compatibility
with existing class-exception code that may be trying to catch this as a
NameError.  Unfortunately, I see no way to make this wholly compatible
with -X (see comments in bltinmodule.c):  under -X, [UnboundLocalError
is an alias for NameError --GvR].

[The ceval.c patch differs slightly from the second version that Tim
submitted; I decided not to raise UnboundLocalError for DELETE_NAME,
only for DELETE_LOCAL.  DELETE_NAME is only generated at the module
level, and since at that level a NameError is raised for referencing
an undefined name, it should also be raised for deleting one.]
</content>
</entry>
</feed>
