<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/context.c, branch Mariatta-patch-2</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-40521: Fix _PyContext_Fini() (GH-21103)</title>
<updated>2020-06-24T01:21:15+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-24T01:21:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cde283d16d87024f455e45c6f1b4e4f7d8905836'/>
<id>cde283d16d87024f455e45c6f1b4e4f7d8905836</id>
<content type='text'>
Only clear _token_missing in the main interpreter.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only clear _token_missing in the main interpreter.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Cleanup code of free lists (GH-21082)</title>
<updated>2020-06-23T14:40:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-23T14:40:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=522691c46e2ae51faaad5bbbce7d959dd61770df'/>
<id>522691c46e2ae51faaad5bbbce7d959dd61770df</id>
<content type='text'>
Add get_xxx_state() function to factorize duplicated code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add get_xxx_state() function to factorize duplicated code.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40887: Don't use finalized free lists (GH-20700)</title>
<updated>2020-06-08T00:14:47+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-08T00:14:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bcb198385dee469d630a184182df9dc1463e2c47'/>
<id>bcb198385dee469d630a184182df9dc1463e2c47</id>
<content type='text'>
In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Make context free list per-interpreter (GH-20644)</title>
<updated>2020-06-05T00:56:37+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-05T00:56:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e005ead49b1ee2b1507ceea94e6f89c28ecf1f81'/>
<id>e005ead49b1ee2b1507ceea94e6f89c28ecf1f81</id>
<content type='text'>
Each interpreter now has its own context free list:

* Move context free list into PyInterpreterState.
* Add _Py_context_state structure.
* Add tstate parameter to _PyContext_ClearFreeList()
  and _PyContext_Fini().
* Pass tstate to clear_freelists().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each interpreter now has its own context free list:

* Move context free list into PyInterpreterState.
* Add _Py_context_state structure.
* Add tstate parameter to _PyContext_ClearFreeList()
  and _PyContext_Fini().
* Pass tstate to clear_freelists().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40428: Remove PyTuple_ClearFreeList() function (GH-19769)</title>
<updated>2020-04-29T00:29:20+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-29T00:29:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ae00a5a88534fd45939f86c12e038da9fa6f9ed6'/>
<id>ae00a5a88534fd45939f86c12e038da9fa6f9ed6</id>
<content type='text'>
Remove the following function from the C API:

* PyAsyncGen_ClearFreeLists()
* PyContext_ClearFreeList()
* PyDict_ClearFreeList()
* PyFloat_ClearFreeList()
* PyFrame_ClearFreeList()
* PyList_ClearFreeList()
* PySet_ClearFreeList()
* PyTuple_ClearFreeList()

Make these functions private, move them to the internal C API and
change their return type to void.

Call explicitly PyGC_Collect() to free all free lists.

Note: PySet_ClearFreeList() did nothing.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the following function from the C API:

* PyAsyncGen_ClearFreeLists()
* PyContext_ClearFreeList()
* PyDict_ClearFreeList()
* PyFloat_ClearFreeList()
* PyFrame_ClearFreeList()
* PyList_ClearFreeList()
* PySet_ClearFreeList()
* PyTuple_ClearFreeList()

Make these functions private, move them to the internal C API and
change their return type to void.

Call explicitly PyGC_Collect() to free all free lists.

Note: PySet_ClearFreeList() did nothing.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40268: Remove unused structmember.h includes (GH-19530)</title>
<updated>2020-04-15T00:35:41+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-15T00:35:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4a21e57fe55076c77b0ee454e1994ca544d09dc0'/>
<id>4a21e57fe55076c77b0ee454e1994ca544d09dc0</id>
<content type='text'>
If only offsetof() is needed: include stddef.h instead.

When structmember.h is used, add a comment explaining that
PyMemberDef is used.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If only offsetof() is needed: include stddef.h instead.

When structmember.h is used, add a comment explaining that
PyMemberDef is used.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425)</title>
<updated>2020-04-14T23:14:15+00:00</updated>
<author>
<name>Ethan Smith</name>
<email>ethan@ethanhs.me</email>
</author>
<published>2020-04-14T23:14:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=d01628e411752ee6849f862cae66a1c69fe512b7'/>
<id>d01628e411752ee6849f862cae66a1c69fe512b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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-38979: fix ContextVar "__class_getitem__" method (GH-17497)</title>
<updated>2019-12-08T11:35:59+00:00</updated>
<author>
<name>AMIR</name>
<email>31338382+amiremohamadi@users.noreply.github.com</email>
</author>
<published>2019-12-08T11:35:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=28c91631c24e53713ad0e8a2bbae716373f5e53d'/>
<id>28c91631c24e53713ad0e8a2bbae716373f5e53d</id>
<content type='text'>
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. 


https://bugs.python.org/issue38979



Automerge-Triggered-By: @asvetlov</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None. 


https://bugs.python.org/issue38979



Automerge-Triggered-By: @asvetlov</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38644: Add _PyObject_VectorcallTstate() (GH-17052)</title>
<updated>2019-11-08T09:05:17+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-11-08T09:05:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7e433733175e76627d46ed9bdab543860cd1452d'/>
<id>7e433733175e76627d46ed9bdab543860cd1452d</id>
<content type='text'>
* Add _PyObject_VectorcallTstate() function: similar to
  _PyObject_Vectorcall(), but with tstate parameter
* Add tstate parameter to _PyObject_MakeTpCall()</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add _PyObject_VectorcallTstate() function: similar to
  _PyObject_Vectorcall(), but with tstate parameter
* Add tstate parameter to _PyObject_MakeTpCall()</pre>
</div>
</content>
</entry>
</feed>
