<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/traceback.py, branch misc-acks-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)</title>
<updated>2019-08-08T05:42:54+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-08-08T05:42:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=662db125cddbca1db68116c547c290eb3943d98e'/>
<id>662db125cddbca1db68116c547c290eb3943d98e</id>
<content type='text'>
They now return NotImplemented for unsupported type of the other operand.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They now return NotImplemented for unsupported type of the other operand.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-26502: Implement FrameSummary.__len__() (GH-8632)</title>
<updated>2018-09-10T17:02:33+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2018-09-10T17:02:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9797b7ae4496627836c55333765e10201a9840e3'/>
<id>9797b7ae4496627836c55333765e10201a9840e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)</title>
<updated>2018-09-10T15:43:10+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-10T15:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d545869d084e70d4838310e79b52a25a72a1ca56'/>
<id>d545869d084e70d4838310e79b52a25a72a1ca56</id>
<content type='text'>
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-27910: Update documentation of traceback module (GH-6116)</title>
<updated>2018-08-02T16:08:59+00:00</updated>
<author>
<name>torsava</name>
<email>torsava@redhat.com</email>
</author>
<published>2018-08-02T16:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7'/>
<id>f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7</id>
<content type='text'>
In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.

Co-Authored-By: Berker Peksag &lt;berker.peksag@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.

Co-Authored-By: Berker Peksag &lt;berker.peksag@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014)</title>
<updated>2017-10-17T21:29:39+00:00</updated>
<author>
<name>Zane Bitter</name>
<email>zbitter@redhat.com</email>
</author>
<published>2017-10-17T21:29:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=de86073a761cd3539aaca6f886a1f55effc0d9da'/>
<id>de86073a761cd3539aaca6f886a1f55effc0d9da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)</title>
<updated>2017-05-18T14:35:54+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-05-18T14:35:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3972628de3d569c88451a2a176a1c94d8822b8a6'/>
<id>3972628de3d569c88451a2a176a1c94d8822b8a6</id>
<content type='text'>
* Replaced list(&lt;generator expression&gt;) with list comprehension
* Replaced dict(&lt;generator expression&gt;) with dict comprehension
* Replaced set(&lt;list literal&gt;) with set literal
* Replaced builtin func(&lt;list comprehension&gt;) with func(&lt;generator
  expression&gt;) when supported (e.g. any(), all(), tuple(), min(), &amp;
  max())</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Replaced list(&lt;generator expression&gt;) with list comprehension
* Replaced dict(&lt;generator expression&gt;) with dict comprehension
* Replaced set(&lt;list literal&gt;) with set literal
* Replaced builtin func(&lt;list comprehension&gt;) with func(&lt;generator
  expression&gt;) when supported (e.g. any(), all(), tuple(), min(), &amp;
  max())</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27348: Merge exception formatting fix from 3.5 into 3.6</title>
<updated>2016-09-22T10:33:21+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-09-22T10:33:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f3b0639417bf788d9a7133ec26e52c406e6c8f4c'/>
<id>f3b0639417bf788d9a7133ec26e52c406e6c8f4c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27348: Restore “Exception: None” formatting in traceback module</title>
<updated>2016-09-22T09:37:39+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-09-22T09:37:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bb8b1cb6af830b40f9be398d1e1bf8bdca772140'/>
<id>bb8b1cb6af830b40f9be398d1e1bf8bdca772140</id>
<content type='text'>
This fixes a regression caused by revision 73afda5a4e4c. Also reverts the
decimal test workaround added in revision 5f3dd0a2b1ab.

Remove test_without_exception(). According to revision ecaafc32c500, this was
added in Python 2 so that print_exc() would output “None” when called with no
exception set. However print_exc() never worked like this in Python 3, and
the use case is not documented.

Restore TracebackCases class name (instead of SyntaxTracebackCases), because
the class also tests other exceptions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a regression caused by revision 73afda5a4e4c. Also reverts the
decimal test workaround added in revision 5f3dd0a2b1ab.

Remove test_without_exception(). According to revision ecaafc32c500, this was
added in Python 2 so that print_exc() would output “None” when called with no
exception set. However print_exc() never worked like this in Python 3, and
the use case is not documented.

Restore TracebackCases class name (instead of SyntaxTracebackCases), because
the class also tests other exceptions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.</title>
<updated>2016-09-10T01:56:20+00:00</updated>
<author>
<name>Eric V. Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2016-09-10T01:56:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=451d0e38fcf50d976236d7d00ccfe8c1a2305086'/>
<id>451d0e38fcf50d976236d7d00ccfe8c1a2305086</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue 27921: Remove backslash from another f-string. I'll revert this change before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.</title>
<updated>2016-09-03T16:33:38+00:00</updated>
<author>
<name>Eric V. Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2016-09-03T16:33:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=06cf601e4f9ce57d12573943dda90d1ee4330b7a'/>
<id>06cf601e4f9ce57d12573943dda90d1ee4330b7a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
