<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git, branch whatsnew-617</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-40334: Add What's New sections for PEP 617 and PEP 585</title>
<updated>2020-04-24T18:25:10+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-24T18:25:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4a69b71a18ef6e228d8716ff33a9379d17e985fa'/>
<id>4a69b71a18ef6e228d8716ff33a9379d17e985fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Rewrite test_c_parser to avoid memory leaks (GH-19694)</title>
<updated>2020-04-24T13:51:09+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-24T13:51:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=24ffe705c30e36c82940d75fd1454256634d0b3c'/>
<id>24ffe705c30e36c82940d75fd1454256634d0b3c</id>
<content type='text'>
Previously every test was building an extension module and
loading it into sys.modules. The tearDown function was thus
not able to clean up correctly, resulting in memory leaks.

With this commit, every test function now builds the extension
module and runs the actual test code in a new process
(using assert_python_ok), so that sys.modules stays intact
and no memory gets leaked.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously every test was building an extension module and
loading it into sys.modules. The tearDown function was thus
not able to clean up correctly, resulting in memory leaks.

With this commit, every test function now builds the extension
module and runs the actual test code in a new process
(using assert_python_ok), so that sys.modules stays intact
and no memory gets leaked.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38061: subprocess uses closefrom() on FreeBSD (GH-19697)</title>
<updated>2020-04-24T10:06:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-24T10:06:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e6f8abd500751a834b6fff4f107ecbd29f2184fe'/>
<id>e6f8abd500751a834b6fff4f107ecbd29f2184fe</id>
<content type='text'>
Optimize the subprocess module on FreeBSD using closefrom().
A single close(fd) syscall is cheap, but when sysconf(_SC_OPEN_MAX)
is high, the loop calling close(fd) on each file descriptor can take
several milliseconds.

The workaround on FreeBSD to improve performance was to load and
mount the fdescfs kernel module, but this is not enabled by default.

Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
(kevans) and Kubilay Kocak (koobs):
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Optimize the subprocess module on FreeBSD using closefrom().
A single close(fd) syscall is cheap, but when sysconf(_SC_OPEN_MAX)
is high, the loop calling close(fd) on each file descriptor can take
several milliseconds.

The workaround on FreeBSD to improve performance was to load and
mount the fdescfs kernel module, but this is not enabled by default.

Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
(kevans) and Kubilay Kocak (koobs):
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38061: os.closerange() uses closefrom() on FreeBSD (GH-19696)</title>
<updated>2020-04-24T10:00:51+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-24T10:00:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=162c567d164b5742c0d1f3f8bd8c8bab9c117cd0'/>
<id>162c567d164b5742c0d1f3f8bd8c8bab9c117cd0</id>
<content type='text'>
On FreeBSD, os.closerange(fd_low, fd_high) now calls
closefrom(fd_low) if fd_high is greater than or equal to
sysconf(_SC_OPEN_MAX).

Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
(kevans) and Kubilay Kocak (koobs):
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On FreeBSD, os.closerange(fd_low, fd_high) now calls
closefrom(fd_low) if fd_high is greater than or equal to
sysconf(_SC_OPEN_MAX).

Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
(kevans) and Kubilay Kocak (koobs):
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274</pre>
</div>
</content>
</entry>
<entry>
<title>Expand the implementation comments (GH-19699)</title>
<updated>2020-04-24T09:33:07+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2020-04-24T09:33:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4cc4d6048efcec43fe866fac96e0c2e57a87b308'/>
<id>4cc4d6048efcec43fe866fac96e0c2e57a87b308</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691)</title>
<updated>2020-04-24T00:43:18+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-24T00:43:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=25104949a5a60ff86c10691e184ce2ecb500159b'/>
<id>25104949a5a60ff86c10691e184ce2ecb500159b</id>
<content type='text'>
If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate-&gt;frame is now
reset properly.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate-&gt;frame is now
reset properly.</pre>
</div>
</content>
</entry>
<entry>
<title>Use Py_ssize_t instead of ssize_t (GH-19685)</title>
<updated>2020-04-24T00:13:33+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-24T00:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9f27dd3e16e2832fa8c375bfc4493de75b39d53f'/>
<id>9f27dd3e16e2832fa8c375bfc4493de75b39d53f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Allow to run make regen-pegen without distutils (GH-19684)</title>
<updated>2020-04-23T23:53:29+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-23T23:53:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=50f28dea32c45e1a49b3bd07c874b4fa837a5e88'/>
<id>50f28dea32c45e1a49b3bd07c874b4fa837a5e88</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix broken mkdir -p call in regen-pegen (#19695)</title>
<updated>2020-04-23T23:30:42+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-23T23:30:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3e89251ba87333cdf0b41a90a7f5c83d1e2280fa'/>
<id>3e89251ba87333cdf0b41a90a7f5c83d1e2280fa</id>
<content type='text'>
We should use `$(MKDIR_P) &lt;directory&gt;`, not `$(MKDIR_P) -p &lt;directory&gt;`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should use `$(MKDIR_P) &lt;directory&gt;`, not `$(MKDIR_P) -p &lt;directory&gt;`.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Use old compiler when compile mode is func_type (GH-19692)</title>
<updated>2020-04-23T22:42:56+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-23T22:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bc28805570ae3e8835a5d502ae9ab15c52449f77'/>
<id>bc28805570ae3e8835a5d502ae9ab15c52449f77</id>
<content type='text'>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</pre>
</div>
</content>
</entry>
</feed>
