<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/errors.c, branch fix-cf-feature-versiob</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888)</title>
<updated>2020-06-16T00:27:33+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-06-16T00:27:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=113e2b0a07c72c0d5e3489076afb14f6b3ad1049'/>
<id>113e2b0a07c72c0d5e3489076afb14f6b3ad1049</id>
<content type='text'>
When a file ends with a line that contains a line continuation character
the text of the emitted SyntaxError is empty, contrary to the old
parser, where the error text contained the text of the last line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a file ends with a line that contains a line continuation character
the text of the emitted SyntaxError is empty, contrary to the old
parser, where the error text contained the text of the last line.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove redundant var in PyErr_NewException() (GH-20850)</title>
<updated>2020-06-13T06:58:12+00:00</updated>
<author>
<name>Hai Shi</name>
<email>shihai1992@gmail.com</email>
</author>
<published>2020-06-13T06:58:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1c209e3b53b6929747fe3b79398bfbaeabb72d92'/>
<id>1c209e3b53b6929747fe3b79398bfbaeabb72d92</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571)</title>
<updated>2020-06-01T14:02:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-01T14:02:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3026cad59b87751a9215111776cac8e819458fce'/>
<id>3026cad59b87751a9215111776cac8e819458fce</id>
<content type='text'>
Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if
tstate is NULL, the error message contains the current function name.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if
tstate is NULL, the error message contains the current function name.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)</title>
<updated>2020-05-22T20:33:27+00:00</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2020-05-22T20:33:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e'/>
<id>7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e</id>
<content type='text'>
This updates _PyErr_ChainStackItem() to use _PyErr_SetObject()
instead of _PyErr_ChainExceptions(). This prevents a hang in
certain circumstances because _PyErr_SetObject() performs checks
to prevent cycles in the exception context chain while
_PyErr_ChainExceptions() doesn't.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This updates _PyErr_ChainStackItem() to use _PyErr_SetObject()
instead of _PyErr_ChainExceptions(). This prevents a hang in
certain circumstances because _PyErr_SetObject() performs checks
to prevent cycles in the exception context chain while
_PyErr_ChainExceptions() doesn't.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951)</title>
<updated>2020-05-18T05:47:31+00:00</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2020-05-18T05:47:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=da742ba826721da84140abc785856d4ccc2d787f'/>
<id>da742ba826721da84140abc785856d4ccc2d787f</id>
<content type='text'>
When an asyncio.Task is cancelled, the exception traceback now
starts with where the task was first interrupted.  Previously,
the traceback only had "depth one."</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When an asyncio.Task is cancelled, the exception traceback now
starts with where the task was first interrupted.  Previously,
the traceback only had "depth one."</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29587: _PyErr_ChainExceptions() checks exception (GH-19902)</title>
<updated>2020-05-05T15:07:41+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-05-05T15:07:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b0be6b3b94fbdf31b796adc19dc86a04a52b03e1'/>
<id>b0be6b3b94fbdf31b796adc19dc86a04a52b03e1</id>
<content type='text'>
_PyErr_ChainExceptions() now ensures that the first parameter is an
exception type, as done by _PyErr_SetObject().

* The following function now check PyExceptionInstance_Check() in an
  assertion using a new _PyBaseExceptionObject_cast() helper
  function:

  * PyException_GetTraceback(), PyException_SetTraceback()
  * PyException_GetCause(), PyException_SetCause()
  * PyException_GetContext(), PyException_SetContext()

* PyExceptionClass_Name() now checks PyExceptionClass_Check() with an
  assertion.

* Remove XXX comment and add gi_exc_state variable to _gen_throw().

* Remove comment from test_generators</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_PyErr_ChainExceptions() now ensures that the first parameter is an
exception type, as done by _PyErr_SetObject().

* The following function now check PyExceptionInstance_Check() in an
  assertion using a new _PyBaseExceptionObject_cast() helper
  function:

  * PyException_GetTraceback(), PyException_SetTraceback()
  * PyException_GetCause(), PyException_SetCause()
  * PyException_GetContext(), PyException_SetContext()

* PyExceptionClass_Name() now checks PyExceptionClass_Check() with an
  assertion.

* Remove XXX comment and add gi_exc_state variable to _gen_throw().

* Remove comment from test_generators</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)</title>
<updated>2020-04-29T01:01:43+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-29T01:01:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4386b9045e5fe1151e65c2816264b5710000eb9f'/>
<id>4386b9045e5fe1151e65c2816264b5710000eb9f</id>
<content type='text'>
The PyThreadState_GetFrame() function now returns a strong reference
to the frame.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PyThreadState_GetFrame() function now returns a strong reference
to the frame.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40268: Remove a few pycore_pystate.h includes (GH-19510)</title>
<updated>2020-04-14T15:52:15+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-14T15:52:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e5014be0497d06d78343623588a80f491a6f7b74'/>
<id>e5014be0497d06d78343623588a80f491a6f7b74</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38644: Use _PySys_Audit(): pass tstate explicitly (GH-19183)</title>
<updated>2020-03-27T14:11:45+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-03-27T14:11:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1c1e68cf3e3a2a19a0edca9a105273e11ddddc6e'/>
<id>1c1e68cf3e3a2a19a0edca9a105273e11ddddc6e</id>
<content type='text'>
Add the dependency to tstate more explicit.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the dependency to tstate more explicit.</pre>
</div>
</content>
</entry>
<entry>
<title> bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809)</title>
<updated>2020-03-06T22:53:17+00:00</updated>
<author>
<name>Andy Lester</name>
<email>andy@petdance.com</email>
</author>
<published>2020-03-06T22:53:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=557287075c264d2458cd3e1b45e9b8ee5341e0a1'/>
<id>557287075c264d2458cd3e1b45e9b8ee5341e0a1</id>
<content type='text'>
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</pre>
</div>
</content>
</entry>
</feed>
