<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/pylifecycle.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-42006: Stop using PyDict_GetItem, PyDict_GetItemString and _PyDict_GetItemId. (GH-22648)</title>
<updated>2020-10-26T06:43:39+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-26T06:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fb5db7ec58624cab0797b4050735be865d380823'/>
<id>fb5db7ec58624cab0797b4050735be865d380823</id>
<content type='text'>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41631: _ast module uses again a global state (#21961)</title>
<updated>2020-09-15T16:03:34+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-09-15T16:03:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e5fbe0cbd4be99ced5f000ad382208ad2a561c90'/>
<id>e5fbe0cbd4be99ced5f000ad382208ad2a561c90</id>
<content type='text'>
Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c:
"bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)".

Using a module state per module instance is causing subtle practical
problems.

For example, the Mercurial project replaces the __import__() function
to implement lazy import, whereas Python expected that "import _ast"
always return a fully initialized _ast module.

Add _PyAST_Fini() to clear the state at exit.

The _ast module has no state (set _astmodule.m_size to 0). Remove
astmodule_traverse(), astmodule_clear() and astmodule_free()
functions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c:
"bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)".

Using a module state per module instance is causing subtle practical
problems.

For example, the Mercurial project replaces the __import__() function
to implement lazy import, whereas Python expected that "import _ast"
always return a fully initialized _ast module.

Add _PyAST_Fini() to clear the state at exit.

The _ast module has no state (set _astmodule.m_size to 0). Remove
astmodule_traverse(), astmodule_clear() and astmodule_free()
functions.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-1635741: Explict GC collect after PyInterpreterState_Clear() (GH-21902)</title>
<updated>2020-08-17T20:36:19+00:00</updated>
<author>
<name>Hai Shi</name>
<email>shihai1992@gmail.com</email>
</author>
<published>2020-08-17T20:36:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8aa163eea6b0fb4693f6c0a314d4f2ccada51d70'/>
<id>8aa163eea6b0fb4693f6c0a314d4f2ccada51d70</id>
<content type='text'>
Fix a reference cycle by triggering an explicit GC collection
after calling PyInterpreterState_Clear().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a reference cycle by triggering an explicit GC collection
after calling PyInterpreterState_Clear().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41162: Clear audit hooks later during finalization (GH-21222)</title>
<updated>2020-07-03T21:06:46+00:00</updated>
<author>
<name>Konge</name>
<email>zkonge@outlook.com</email>
</author>
<published>2020-07-03T21:06:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=daa0fe03a517d335d48e65ace8e5da636e265a8f'/>
<id>daa0fe03a517d335d48e65ace8e5da636e265a8f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-1635741: Release Unicode interned strings at exit (GH-21269)</title>
<updated>2020-07-01T23:19:57+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-07-01T23:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=666ecfb0957a2fa0df5e2bd03804195de74bdfbf'/>
<id>666ecfb0957a2fa0df5e2bd03804195de74bdfbf</id>
<content type='text'>
* PyUnicode_InternInPlace() now ensures that interned strings are
  ready.
* Add _PyUnicode_ClearInterned().
* Py_Finalize() now releases Unicode interned strings:
  call _PyUnicode_ClearInterned().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PyUnicode_InternInPlace() now ensures that interned strings are
  ready.
* Add _PyUnicode_ClearInterned().
* Py_Finalize() now releases Unicode interned strings:
  call _PyUnicode_ClearInterned().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Cleanup finalize_interp_types() (GH-21265)</title>
<updated>2020-07-01T21:21:36+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-07-01T21:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=90db4653ae37ef90754cfd2cd6ec6857b87a88e6'/>
<id>90db4653ae37ef90754cfd2cd6ec6857b87a88e6</id>
<content type='text'>
Remove the now unused is_main_interp parameter of
finalize_interp_types().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the now unused is_main_interp parameter of
finalize_interp_types().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Optimize PyBytes_FromStringAndSize(str, 0) (GH-21142)</title>
<updated>2020-06-25T12:07:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-25T12:07:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=91698d8caa4b5bb6e8dbb64b156e8afe9e32cac1'/>
<id>91698d8caa4b5bb6e8dbb64b156e8afe9e32cac1</id>
<content type='text'>
Always create the empty bytes string singleton.

Optimize PyBytes_FromStringAndSize(str, 0): it no longer has to check
if the empty string singleton was created or not, it is always
available.

Add functions:

* _PyBytes_Init()
* bytes_get_empty(), bytes_new_empty()
* bytes_create_empty_string_singleton()
* unicode_create_empty_string_singleton()

_Py_unicode_state: rename empty structure member to empty_string.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always create the empty bytes string singleton.

Optimize PyBytes_FromStringAndSize(str, 0): it no longer has to check
if the empty string singleton was created or not, it is always
available.

Add functions:

* _PyBytes_Init()
* bytes_get_empty(), bytes_new_empty()
* bytes_create_empty_string_singleton()
* unicode_create_empty_string_singleton()

_Py_unicode_state: rename empty structure member to empty_string.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Always create the empty tuple singleton (GH-21116)</title>
<updated>2020-06-24T13:21:54+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-24T13:21:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0430dfac629b4eb0e899a09b899a494aa92145f6'/>
<id>0430dfac629b4eb0e899a09b899a494aa92145f6</id>
<content type='text'>
Py_InitializeFromConfig() now always creates the empty tuple
singleton as soon as possible.

Optimize PyTuple_New(0): it no longer has to check if the empty tuple
was created or not, it is always creatd.

* Add tuple_create_empty_tuple_singleton() function.
* Add tuple_get_empty() function.
* Remove state parameter of tuple_alloc().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Py_InitializeFromConfig() now always creates the empty tuple
singleton as soon as possible.

Optimize PyTuple_New(0): it no longer has to check if the empty tuple
was created or not, it is always creatd.

* Add tuple_create_empty_tuple_singleton() function.
* Add tuple_get_empty() function.
* Remove state parameter of tuple_alloc().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Make empty Unicode string per interpreter (GH-21096)</title>
<updated>2020-06-23T22:10:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-23T22:10:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f363d0a6e9cfa50677a6de203735fbc0d06c2f49'/>
<id>f363d0a6e9cfa50677a6de203735fbc0d06c2f49</id>
<content type='text'>
Each interpreter now has its own empty Unicode string singleton.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each interpreter now has its own empty Unicode string singleton.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40521: Make MemoryError free list per interpreter (GH-21086)</title>
<updated>2020-06-23T20:55:46+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-23T20:55:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=281cce1106568ef9fec17e3c72d289416fac02a5'/>
<id>281cce1106568ef9fec17e3c72d289416fac02a5</id>
<content type='text'>
Each interpreter now has its own MemoryError free list: it is not
longer shared by all interpreters.

Add _Py_exc_state structure and PyInterpreterState.exc_state member.
Move also errnomap into _Py_exc_state.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each interpreter now has its own MemoryError free list: it is not
longer shared by all interpreters.

Add _Py_exc_state structure and PyInterpreterState.exc_state member.
Move also errnomap into _Py_exc_state.</pre>
</div>
</content>
</entry>
</feed>
