<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python, branch benjamin-pyapi</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>closes bpo-34646: Remove PyAPI_* macros from declarations.</title>
<updated>2018-09-12T17:40:45+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-12T17:33:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b21f3d99eeee630889b5d235cd3af646d620a6a9'/>
<id>b21f3d99eeee630889b5d235cd3af646d620a6a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make sure the line comes from the same node as the col offset. (GH-9189)</title>
<updated>2018-09-11T22:29:57+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-11T22:29:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d13e59c1b512069d90efe7ee9b613d3913e79c56'/>
<id>d13e59c1b512069d90efe7ee9b613d3913e79c56</id>
<content type='text'>
Followup to 90fc8980bbcc5c7dcced3627fe172b0bfd193a3b.

&lt;!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.

# Pull Request title

It should be in the following format:

```
bpo-NNNN: Summary of the changes made
```

Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.

Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.

# Backport Pull Request title

If this is a backport PR (PR made against branches other than `master`),
please ensure that the PR title is in the following format:

```
[X.Y] &lt;title from the original PR&gt; (GH-NNNN)
```

Where: [X.Y] is the branch name, e.g. [3.6].

GH-NNNN refers to the PR number from `master`.

--&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Followup to 90fc8980bbcc5c7dcced3627fe172b0bfd193a3b.

&lt;!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.

# Pull Request title

It should be in the following format:

```
bpo-NNNN: Summary of the changes made
```

Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.

Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.

# Backport Pull Request title

If this is a backport PR (PR made against branches other than `master`),
please ensure that the PR title is in the following format:

```
[X.Y] &lt;title from the original PR&gt; (GH-NNNN)
```

Where: [X.Y] is the branch name, e.g. [3.6].

GH-NNNN refers to the PR number from `master`.

--&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize a variable to make the compiler happy. (GH-9153)</title>
<updated>2018-09-11T22:11:06+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-11T22:11:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=acd282fd5b3ca4de302b33c9361dbc433593c4ca'/>
<id>acd282fd5b3ca4de302b33c9361dbc433593c4ca</id>
<content type='text'>
GCC complains:

Python/pylifecycle.c: In function ‘_Py_InitializeFromConfig’:
Python/pylifecycle.c:900:13: warning: ‘interp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = _Py_InitializeMainInterpreter(interp, &amp;main_config);
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This seems spurious since &amp;interp is passed to _Py_InitializeCore. Anyway, we
can easily initialize to quiet the warning.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GCC complains:

Python/pylifecycle.c: In function ‘_Py_InitializeFromConfig’:
Python/pylifecycle.c:900:13: warning: ‘interp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = _Py_InitializeMainInterpreter(interp, &amp;main_config);
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This seems spurious since &amp;interp is passed to _Py_InitializeCore. Anyway, we
can easily initialize to quiet the warning.</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-31902: Fix the col_offset attribute for ast.Async* nodes to point to the "async" keyword. (GH-4175)</title>
<updated>2018-09-11T21:45:45+00:00</updated>
<author>
<name>guoci</name>
<email>zguoci@gmail.com</email>
</author>
<published>2018-09-11T21:45:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=90fc8980bbcc5c7dcced3627fe172b0bfd193a3b'/>
<id>90fc8980bbcc5c7dcced3627fe172b0bfd193a3b</id>
<content type='text'>
Previously, col_offset points to the keyword after "async".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, col_offset points to the keyword after "async".
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)</title>
<updated>2018-09-10T15:43:10+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-10T15:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d545869d084e70d4838310e79b52a25a72a1ca56'/>
<id>d545869d084e70d4838310e79b52a25a72a1ca56</id>
<content type='text'>
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.</pre>
</div>
</content>
</entry>
<entry>
<title>_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044)</title>
<updated>2018-09-03T15:05:18+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-09-03T15:05:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8ea09110d413829f71d979d8c7073008cb87fb03'/>
<id>8ea09110d413829f71d979d8c7073008cb87fb03</id>
<content type='text'>
bpo-34544: If _Py_CoerceLegacyLocale() fails to coerce the C locale,
restore the LC_CTYPE locale to the its previous value.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bpo-34544: If _Py_CoerceLegacyLocale() fails to coerce the C locale,
restore the LC_CTYPE locale to the its previous value.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34408: Prevent a null pointer dereference and resource leakage in `PyInterpreterState_New()` (GH-8767)</title>
<updated>2018-08-31T21:49:29+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2018-08-31T21:49:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=95d630e2213fb0ffc197ec440efa3ae3dbb74f8d'/>
<id>95d630e2213fb0ffc197ec440efa3ae3dbb74f8d</id>
<content type='text'>
* A pointer in `PyInterpreterState_New()` could have been `NULL` when being dereferenced.

* Memory was leaked in `PyInterpreterState_New()` when taking some error-handling code path.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* A pointer in `PyInterpreterState_New()` could have been `NULL` when being dereferenced.

* Memory was leaked in `PyInterpreterState_New()` when taking some error-handling code path.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34523: Use _PyCoreConfig instead of globals (GH-9005)</title>
<updated>2018-08-29T22:50:45+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-29T22:50:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fbca90856d96273fd87c0b126f6e7966af7fbf7b'/>
<id>fbca90856d96273fd87c0b126f6e7966af7fbf7b</id>
<content type='text'>
Use the core configuration of the interpreter, rather
than using global configuration variables. For example, replace
Py_QuietFlag with core_config-&gt;quiet.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the core configuration of the interpreter, rather
than using global configuration variables. For example, replace
Py_QuietFlag with core_config-&gt;quiet.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34523: Py_FileSystemDefaultEncoding NULL by default (GH-9003)</title>
<updated>2018-08-29T21:26:55+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-29T21:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=de427556746aa41a8b5198924ce423021bc0c718'/>
<id>de427556746aa41a8b5198924ce423021bc0c718</id>
<content type='text'>
* Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
  default value is now NULL: initfsencoding() set them
  during Python initialization.
* Document how Python chooses the filesystem encoding and error
  handler.
* Add an assertion to _PyCoreConfig_Read().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
  default value is now NULL: initfsencoding() set them
  during Python initialization.
* Document how Python chooses the filesystem encoding and error
  handler.
* Add an assertion to _PyCoreConfig_Read().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34485: Emit C locale coercion warning later (GH-9002)</title>
<updated>2018-08-29T20:56:06+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-29T20:56:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cf21504194927b2f22132f48effea69eb8ade751'/>
<id>cf21504194927b2f22132f48effea69eb8ade751</id>
<content type='text'>
PYTHONCOERCELOCALE=warn warning is now emitted later and written into
sys.stderr, rather than being written into the C stderr stream.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PYTHONCOERCELOCALE=warn warning is now emitted later and written into
sys.stderr, rather than being written into the C stderr stream.</pre>
</div>
</content>
</entry>
</feed>
