<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/dictobject.c, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/dictobject.c?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/dictobject.c?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2020-12-07T20:08:24Z</updated>
<entry>
<title>bpo-42536: GC track recycled tuples (GH-23623) (GH-23652)</title>
<updated>2020-12-07T20:08:24Z</updated>
<author>
<name>Brandt Bucher</name>
<email>brandtbucher@gmail.com</email>
</author>
<published>2020-12-07T20:08:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7c797982383ebfd9cca39c480dcf6132979dd06f'/>
<id>urn:sha1:7c797982383ebfd9cca39c480dcf6132979dd06f</id>
<content type='text'>
Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:

- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip

Previously, they could have become untracked by a prior garbage collection.
(cherry picked from commit 226a012d1cd61f42ecd3056c554922f359a1a35d)</content>
</entry>
<entry>
<title>[3.8] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17764)</title>
<updated>2019-12-31T04:15:36Z</updated>
<author>
<name>Dong-hee Na</name>
<email>donghee.na92@gmail.com</email>
</author>
<published>2019-12-31T04:15:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2ee87913dde038436a25f1db13ee3fddd2bcc983'/>
<id>urn:sha1:2ee87913dde038436a25f1db13ee3fddd2bcc983</id>
<content type='text'>
* [3.8] bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call.
(cherry picked from commit 2d5bf568eaa5059402ccce9ba5a366986ba27c8a)

Co-authored-by: Dong-hee Na &lt;donghee.na92@gmail.com&gt;

* Update Objects/listobject.c

@methane's suggestion

Co-Authored-By: Inada Naoki &lt;songofacandy@gmail.com&gt;

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;
</content>
</entry>
<entry>
<title>bpo-38555: Fix an undefined behavior. (GH-16883)</title>
<updated>2019-10-23T12:07:23Z</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-10-23T12:07:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c5d3ea89ee5244714f221dcfcd3be96de2f1da8d'/>
<id>urn:sha1:c5d3ea89ee5244714f221dcfcd3be96de2f1da8d</id>
<content type='text'>
(cherry picked from commit 2e3d873d3bd0ef4708c4fa06b6cd6972574cb9af)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)</title>
<updated>2019-10-19T20:20:51Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-10-19T20:20:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d73205d788a32148ba9a2beaa27badbd94ab65ff'/>
<id>urn:sha1:d73205d788a32148ba9a2beaa27badbd94ab65ff</id>
<content type='text'>
The reverse iterator for empty dictionaries was not handling correctly shared-key dictionaries.
(cherry picked from commit 24dc2f8c56697f9ee51a4887cf0814b6600c1815)

Co-authored-by: Dong-hee Na &lt;donghee.na92@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-36389: Backport debug enhancements from master (GH-16796)</title>
<updated>2019-10-15T01:06:16Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-15T01:06:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f82ce5b1b12873b65927149a016be6a7c65e979d'/>
<id>urn:sha1:f82ce5b1b12873b65927149a016be6a7c65e979d</id>
<content type='text'>
* bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612)

bpo-36389, bpo-38376: The _PyObject_CheckConsistency() function is
now also available in release mode. For example, it can be used to
debug a crash in the visit_decref() function of the GC.

Modify the following functions to also work in release mode:

* _PyDict_CheckConsistency()
* _PyObject_CheckConsistency()
* _PyType_CheckConsistency()
* _PyUnicode_CheckConsistency()

Other changes:

* _PyMem_IsPtrFreed(ptr) now also returns 1 if ptr is NULL
  (equals to 0).
* _PyBytesWriter_CheckConsistency() now returns 1 and is only used
  with assert().
* Reorder _PyObject_Dump() to write safe fields first, and only
  attempt to render repr() at the end.

(cherry picked from commit 6876257eaabdb30f27ebcbd7d2557278ce2e5705)

* bpo-36389: Fix _PyBytesWriter in release mode (GH-16624)

Fix _PyBytesWriter API when Python is built in release mode with
assertions.

(cherry picked from commit 60ec6efd96d95476fe5e38c491491add04f026e5)

* bpo-38070: Enhance visit_decref() debug trace (GH-16631)

subtract_refs() now pass the parent object to visit_decref() which
pass it to _PyObject_ASSERT(). So if the "is freed" assertion fails,
the parent is used in debug trace, rather than the freed object. The
parent object is more likely to contain useful information. Freed
objects cannot be inspected are are displayed as "&lt;object at xxx is
freed&gt;" with no other detail.

(cherry picked from commit 4d5f94b8cd20f804c7868c5395a15aa6032f874c)

* Fix also a typo in PYMEM_DEADBYTE macro comment

* bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)

Add a newline between the verbose object dump and the Py_FatalError()
logs for readability.

(cherry picked from commit 7775349895088a7ae68cecf0c74cf817f15e2c74)
</content>
</entry>
<entry>
<title>Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)</title>
<updated>2019-10-14T02:14:27Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-10-14T02:14:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a7c43bafd07d7b8db5f2329b264c9f83652c682'/>
<id>urn:sha1:9a7c43bafd07d7b8db5f2329b264c9f83652c682</id>
<content type='text'>
(cherry picked from commit c39d1ddc012987e2159a997e27665d2d579c0ce0)

Co-authored-by: Dong-hee Na &lt;donghee.na92@gmail.com&gt;</content>
</entry>
<entry>
<title>Fix typo in dict object comment (GH-15814)</title>
<updated>2019-09-10T10:13:36Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-09-10T10:13:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18fa272601a1fa2c5a978b27c0c8dfd7c3ca90af'/>
<id>urn:sha1:18fa272601a1fa2c5a978b27c0c8dfd7c3ca90af</id>
<content type='text'>
(cherry picked from commit 359143c68659d165f52320d368667e0eff279dc5)

Co-authored-by: dalgarno &lt;32097481+dalgarno@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>Stop using Argument Clinic for dict_pop (GH-13935)</title>
<updated>2019-07-02T11:32:43Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2019-07-02T11:32:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d4c664736e43284405100d98d516fa269a647461'/>
<id>urn:sha1:d4c664736e43284405100d98d516fa269a647461</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)</title>
<updated>2019-06-03T12:30:58Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2019-06-03T12:30:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91234a16367b56ca03ee289f7c03a34d4cfec4c8'/>
<id>urn:sha1:91234a16367b56ca03ee289f7c03a34d4cfec4c8</id>
<content type='text'>
This patch implements per opcode cache mechanism, and use it in
only LOAD_GLOBAL opcode.

Based on Yury's opcache3.patch in bpo-26219.</content>
</entry>
<entry>
<title>bpo-36974: tp_print -&gt; tp_vectorcall_offset and tp_reserved -&gt; tp_as_async (GH-13464)</title>
<updated>2019-05-31T02:13:39Z</updated>
<author>
<name>Jeroen Demeyer</name>
<email>J.Demeyer@UGent.be</email>
</author>
<published>2019-05-31T02:13:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=530f506ac91338b55cf2be71b1cdf50cb077512f'/>
<id>urn:sha1:530f506ac91338b55cf2be71b1cdf50cb077512f</id>
<content type='text'>
Automatically replace
tp_print -&gt; tp_vectorcall_offset
tp_compare -&gt; tp_as_async
tp_reserved -&gt; tp_as_async
</content>
</entry>
</feed>
