<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/errors.c, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/errors.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/errors.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-04-10T20:30:18Z</updated>
<entry>
<title>Backport:</title>
<updated>2003-04-10T20:30:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-04-10T20:30:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef582abab461e306ac3fa0ad867b2db564fed3a5'/>
<id>urn:sha1:ef582abab461e306ac3fa0ad867b2db564fed3a5</id>
<content type='text'>
PyErr_NormalizeException(): in the type==NULL test, we should simply
return.  Setting an exception can mess with the exception state, and
continuing is definitely wrong (since type is dereferenced later on).
Some code that calls this seems to be prepared for a NULL exception
type, so let's be safe rather than sorry and simply assume there's
nothing to normalize in this case.
</content>
</entry>
<entry>
<title>Patch #50002: Display line information for bad \x escapes:</title>
<updated>2002-03-03T21:32:01Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-03-03T21:32:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=59509f511ed8eacbefecc4357c69036fc036effe'/>
<id>urn:sha1:59509f511ed8eacbefecc4357c69036fc036effe</id>
<content type='text'>
- recognize "SyntaxError"s by the print_file_and_line attribute.
- add the syntaxerror attributes to all exceptions in compile.c.
Fixes #221791
</content>
</entry>
<entry>
<title>SF bug [#467265] Compile errors on SuSe Linux on IBM/s390.</title>
<updated>2001-10-02T21:32:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-02T21:32:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c15c4f1f39b2b3ca799c9a36b72a7c19a3c76e20'/>
<id>urn:sha1:c15c4f1f39b2b3ca799c9a36b72a7c19a3c76e20</id>
<content type='text'>
Unknown whether this fixes it.
- stringobject.c, PyString_FromFormatV:  don't assume that va_list is of
  a type that can be copied via an initializer.
- errors.c, PyErr_Format:  add a va_end() to balance the va_start().
</content>
</entry>
<entry>
<title>PyErr_NormalizeException()</title>
<updated>2001-09-26T19:58:38Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-09-26T19:58:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2e2c9f41e13d81c6650ae4f4b4ff15a3e6d9423'/>
<id>urn:sha1:e2e2c9f41e13d81c6650ae4f4b4ff15a3e6d9423</id>
<content type='text'>
If a new exception occurs while an exception instance is being
created, try harder to make sure there is a traceback.  If the
original exception had a traceback associated with it and the new
exception does not, keep the old exception.

Of course, callers to PyErr_NormalizeException() must still be
prepared to have tb set to NULL.

XXX This isn't an ideal solution, but it's better than no traceback at
all.  It occurs if, for example, the exception occurs when the call to
the constructor fails before any Python code is executed.  Guido
suggests that it there is Python code that was about to be executed
-- but wasn't, say, because it was called with the wrong number of
arguments -- then we should point at the first line of the code object
anyway.
</content>
</entry>
<entry>
<title>PyErr_Format(): Factor out most of this code into</title>
<updated>2001-08-24T18:35:23Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-08-24T18:35:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=876c8cb597f155de7817f6c4f352871d2e201b3e'/>
<id>urn:sha1:876c8cb597f155de7817f6c4f352871d2e201b3e</id>
<content type='text'>
    PyString_FromFormat() since it's much more generally useful than
    just for exceptions.
</content>
</entry>
<entry>
<title>PyErr_Occurred():  Use PyThreadState_GET(), which saves a tiny function call</title>
<updated>2001-05-30T06:09:50Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-30T06:09:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=024da3545b9a47101c3757e3ee90b0fcf4db0a18'/>
<id>urn:sha1:024da3545b9a47101c3757e3ee90b0fcf4db0a18</id>
<content type='text'>
in release builds.  Suggested by Martin v. Loewis.

I'm half tempted to macroize PyErr_Occurred too, as the whole thing could
collapse to just
     _PyThreadState_Current-&gt;curexc_type
</content>
</entry>
<entry>
<title>Use Py_CHARMASK for ctype macros. Fixes bug #232787.</title>
<updated>2001-03-06T12:12:02Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-03-06T12:12:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2b6727bd8a714d334d34e6a9fabc1d0f651633a7'/>
<id>urn:sha1:2b6727bd8a714d334d34e6a9fabc1d0f651633a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add PyErr_WarnExplicit(), which calls warnings.warn_explicit(), with</title>
<updated>2001-02-28T21:46:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-02-28T21:46:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2fd456508fe1f6e9d89e153f2d8e83a95b233504'/>
<id>urn:sha1:2fd456508fe1f6e9d89e153f2d8e83a95b233504</id>
<content type='text'>
explicit filename, lineno etc. arguments.
</content>
</entry>
<entry>
<title>Improve SyntaxErrors for bad future statements.  Set file and location</title>
<updated>2001-02-28T17:47:12Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-28T17:47:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ad3d3f2f3f19833f59fd7e9ec59e1714e0986e08'/>
<id>urn:sha1:ad3d3f2f3f19833f59fd7e9ec59e1714e0986e08</id>
<content type='text'>
for errors raised in future.c.

Move some helper functions from compile.c to errors.c and make them
API functions: PyErr_SyntaxLocation() and PyErr_ProgramText().
</content>
</entry>
<entry>
<title>Add PyErr_Warn().</title>
<updated>2000-12-15T21:58:52Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-12-15T21:58:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cfd42b556bfa6282362dc53edcfabd5fa95fd9c0'/>
<id>urn:sha1:cfd42b556bfa6282362dc53edcfabd5fa95fd9c0</id>
<content type='text'>
</content>
</entry>
</feed>
