<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/sysmodule.c, branch misc-acks-comment</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-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)</title>
<updated>2019-12-09T19:05:39+00:00</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@python.org</email>
</author>
<published>2019-12-09T19:05:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b8cbe74c3498c617f0e73fd0cdc5c07f2c532092'/>
<id>b8cbe74c3498c617f0e73fd0cdc5c07f2c532092</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38858: new_interpreter() reuses _PySys_Create() (GH-17481)</title>
<updated>2019-12-06T01:43:30+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-12-06T01:43:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=81fe5bd3d78f9bb955f8255404d99df27a31c36a'/>
<id>81fe5bd3d78f9bb955f8255404d99df27a31c36a</id>
<content type='text'>
new_interpreter() now calls _PySys_Create() to create a new sys
module isolated from the main interpreter. It now calls
_PySys_InitCore() and _PyImport_FixupBuiltin().

init_interp_main() now calls _PySys_InitMain().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
new_interpreter() now calls _PySys_Create() to create a new sys
module isolated from the main interpreter. It now calls
_PySys_InitCore() and _PyImport_FixupBuiltin().

init_interp_main() now calls _PySys_InitMain().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38920: Add audit hooks for when sys.excepthook and sys.unraisable hooks are invoked (GH-17392)</title>
<updated>2019-11-28T16:46:11+00:00</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@python.org</email>
</author>
<published>2019-11-28T16:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bea33f5e1db6e4a554919a82894f44568576e979'/>
<id>bea33f5e1db6e4a554919a82894f44568576e979</id>
<content type='text'>
Also fixes some potential segfaults in unraisable hook handling.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fixes some potential segfaults in unraisable hook handling.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36710: Add PyInterpreterState.runtime field (GH-17270)</title>
<updated>2019-11-20T01:27:56+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-11-20T01:27:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a'/>
<id>01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a</id>
<content type='text'>
Add PyInterpreterState.runtime field: reference to the _PyRuntime
global variable. This field exists to not have to pass runtime in
addition to tstate to a function.  Get runtime from tstate:
tstate-&gt;interp-&gt;runtime.

Remove "_PyRuntimeState *runtime" parameter from functions already
taking a "PyThreadState *tstate" parameter.

_PyGC_Init() first parameter becomes "PyThreadState *tstate".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add PyInterpreterState.runtime field: reference to the _PyRuntime
global variable. This field exists to not have to pass runtime in
addition to tstate to a function.  Get runtime from tstate:
tstate-&gt;interp-&gt;runtime.

Remove "_PyRuntimeState *runtime" parameter from functions already
taking a "PyThreadState *tstate" parameter.

_PyGC_Init() first parameter becomes "PyThreadState *tstate".</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38317: Fix PyConfig.warnoptions priority (GH-16478)</title>
<updated>2019-09-29T23:40:17+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-09-29T23:40:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fb4ae152a9930f0e00cae8b2807f534058cf341a'/>
<id>fb4ae152a9930f0e00cae8b2807f534058cf341a</id>
<content type='text'>
Fix warnings options priority: PyConfig.warnoptions has the highest
priority, as stated in the PEP 587.

* Document options order in PyConfig.warnoptions documentation.
* Make PyWideStringList_INIT macro private: replace "Py" prefix
  with "_Py".
* test_embed: add test_init_warnoptions().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix warnings options priority: PyConfig.warnoptions has the highest
priority, as stated in the PEP 587.

* Document options order in PyConfig.warnoptions documentation.
* Make PyWideStringList_INIT macro private: replace "Py" prefix
  with "_Py".
* test_embed: add test_init_warnoptions().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933)</title>
<updated>2019-09-14T09:24:05+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-09-14T09:24:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=279f44678c8b84a183f9eeb85e0b086228154497'/>
<id>279f44678c8b84a183f9eeb85e0b086228154497</id>
<content type='text'>
In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895)</title>
<updated>2019-09-11T14:17:32+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-09-11T14:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7117074410118086938044c7a4ef6846ec1662b2'/>
<id>7117074410118086938044c7a4ef6846ec1662b2</id>
<content type='text'>
* bpo-38096: Clean up the "struct sequence" / "named tuple" docs

* Fix remaining occurrences of "struct sequence"

* Repair a user visible docstring
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-38096: Clean up the "struct sequence" / "named tuple" docs

* Fix remaining occurrences of "struct sequence"

* Repair a user visible docstring
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37994: Fix silencing all errors if an attribute lookup fails. (GH-15630)</title>
<updated>2019-09-01T09:03:39+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-09-01T09:03:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=41c57b335330ff48af098d47e379e0f9ba09d233'/>
<id>41c57b335330ff48af098d47e379e0f9ba09d233</id>
<content type='text'>
Only AttributeError should be silenced.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only AttributeError should be silenced.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431)</title>
<updated>2019-08-23T17:03:08+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-08-23T17:03:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=120b707a6d43452e067daa55a8fdca69f9424abc'/>
<id>120b707a6d43452e067daa55a8fdca69f9424abc</id>
<content type='text'>
PyConfig_Read() is now responsible to handle early calls to
PySys_AddXOption() and PySys_AddWarnOption().

Options added by PySys_AddXOption() are now handled the same way than
PyConfig.xoptions and command line -X options.

For example, PySys_AddXOption(L"faulthandler") enables faulthandler
as expected.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyConfig_Read() is now responsible to handle early calls to
PySys_AddXOption() and PySys_AddWarnOption().

Options added by PySys_AddXOption() are now handled the same way than
PyConfig.xoptions and command line -X options.

For example, PySys_AddXOption(L"faulthandler") enables faulthandler
as expected.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37926: Fix PySys_SetArgvEx(0, NULL, 0) crash (GH-15415)</title>
<updated>2019-08-23T10:04:16+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-08-23T10:04:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c48682509dc49b43fe914fe6c502bc390345d1c2'/>
<id>c48682509dc49b43fe914fe6c502bc390345d1c2</id>
<content type='text'>
empty_argv is no longer static in Python 3.8, but it is declared in
a temporary scope, whereas argv keeps a reference to it.
empty_argv memory (allocated on the stack) is reused by
make_sys_argv() code which is inlined when using gcc -O3.

Define empty_argv in PySys_SetArgvEx() body, to ensure
that it remains valid for the whole lifetime of
the PySys_SetArgvEx() call.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
empty_argv is no longer static in Python 3.8, but it is declared in
a temporary scope, whereas argv keeps a reference to it.
empty_argv memory (allocated on the stack) is reused by
make_sys_argv() code which is inlined when using gcc -O3.

Define empty_argv in PySys_SetArgvEx() body, to ensure
that it remains valid for the whole lifetime of
the PySys_SetArgvEx() call.</pre>
</div>
</content>
</entry>
</feed>
