<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules, branch feature-version</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>Work towards feature_version support</title>
<updated>2019-03-05T19:36:11+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2019-02-21T02:08:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0e2403f2f95a21912972422564de37cbe129c195'/>
<id>0e2403f2f95a21912972422564de37cbe129c195</id>
<content type='text'>
Visible behavior:

- Issue error for `X @ Y` (matrix multiply) if c_feature_version &lt; 5

- Add optional feature_version kw arg to ast.parse() (default -1 which
  implies PY_MINOR_VERSION)

- Add feature_version: int = -1 to compile() (via Argument Clinic);
  this sets cf_feature_version to the given value if &gt;= 0, else
  defaults to PY_MINOR_VERSION

Implementation:

- Add PyAST_obj2mod_ex(): like PyAST_obj2mod() but with feature_version arg;
  the latter calls the former with PY_MINOR_VERSION

- Add cf_feature_version to PyCompilerFlags structure;
  initialized to PY_MINOR_VERSION everywhere

- Add c_feature_version to struct compiling; initialize from
  cf_feature_version

- Add 'c' argument to get_operator()

- In builtin eval() and exec(), default to PY_MINOR_VERSION

TODO:

- Put version-dependent ASYNC/AWAIT keyword scanning back

- Reject async functions, await expressions, and async for/with in minor versions &lt; 5

- Reject async comprehensions in minor versions &lt; 6

- Reject underscores in numeric literals in minor versions &lt; 6

- Reject variable annotations in minor versions &lt; 6

- Reject `X @= Y` in minor versions &lt; 5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Visible behavior:

- Issue error for `X @ Y` (matrix multiply) if c_feature_version &lt; 5

- Add optional feature_version kw arg to ast.parse() (default -1 which
  implies PY_MINOR_VERSION)

- Add feature_version: int = -1 to compile() (via Argument Clinic);
  this sets cf_feature_version to the given value if &gt;= 0, else
  defaults to PY_MINOR_VERSION

Implementation:

- Add PyAST_obj2mod_ex(): like PyAST_obj2mod() but with feature_version arg;
  the latter calls the former with PY_MINOR_VERSION

- Add cf_feature_version to PyCompilerFlags structure;
  initialized to PY_MINOR_VERSION everywhere

- Add c_feature_version to struct compiling; initialize from
  cf_feature_version

- Add 'c' argument to get_operator()

- In builtin eval() and exec(), default to PY_MINOR_VERSION

TODO:

- Put version-dependent ASYNC/AWAIT keyword scanning back

- Reject async functions, await expressions, and async for/with in minor versions &lt; 5

- Reject async comprehensions in minor versions &lt; 6

- Reject underscores in numeric literals in minor versions &lt; 6

- Reject variable annotations in minor versions &lt; 6

- Reject `X @= Y` in minor versions &lt; 5
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)</title>
<updated>2019-03-05T16:41:09+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-03-05T16:41:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=adfffc7343ce7ebc88ec734a803d3247ba8927fb'/>
<id>adfffc7343ce7ebc88ec734a803d3247ba8927fb</id>
<content type='text'>
Correctly fixes bpo-36197.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correctly fixes bpo-36197.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33012: Fix compilation warnings in memoryobject.c and _collectionsmodule.c (GH-12179)</title>
<updated>2019-03-05T15:10:53+00:00</updated>
<author>
<name>Stéphane Wirtel</name>
<email>stephane@wirtel.be</email>
</author>
<published>2019-03-05T15:10:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=359a2f3daba49fde0d3a07fb3c7a8b051c450d08'/>
<id>359a2f3daba49fde0d3a07fb3c7a8b051c450d08</id>
<content type='text'>
Cast function pointers to (void(*)(void)) before casting to (PyCFunction)
to make "warning: cast between incompatible function types" false alarm quiet.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cast function pointers to (void(*)(void)) before casting to (PyCFunction)
to make "warning: cast between incompatible function types" false alarm quiet.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36142: Add _PyPreConfig_ReadFromArgv() (GH-12173)</title>
<updated>2019-03-05T01:44:12+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-03-05T01:44:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6dcb54228e7520abd058897440c26e323f62afcd'/>
<id>6dcb54228e7520abd058897440c26e323f62afcd</id>
<content type='text'>
The new function is now responsible to parse -E and -I command line
arguments.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new function is now responsible to parse -E and -I command line
arguments.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36142: Add _PyPreConfig structure (GH-12172)</title>
<updated>2019-03-05T01:01:27+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-03-05T01:01:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cad1f747da47849ab5d8b0b881f7a0b94564d290'/>
<id>cad1f747da47849ab5d8b0b881f7a0b94564d290</id>
<content type='text'>
* Add _PyPreConfig structure
* Move 'ignored' and 'use_environment' fields from _PyCoreConfig
  to _PyPreConfig
* Add a new "_PyPreConfig preconfig;" field to _PyCoreConfig</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add _PyPreConfig structure
* Move 'ignored' and 'use_environment' fields from _PyCoreConfig
  to _PyPreConfig
* Add a new "_PyPreConfig preconfig;" field to _PyCoreConfig</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36179: Fix ref leaks in _hashopenssl (GH-12158)</title>
<updated>2019-03-04T15:45:41+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2019-03-04T15:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b7bc283ab6a23ee98784400ebffe7fe410232a2e'/>
<id>b7bc283ab6a23ee98784400ebffe7fe410232a2e</id>
<content type='text'>
Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;



https://bugs.python.org/issue36179</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;



https://bugs.python.org/issue36179</pre>
</div>
</content>
</entry>
<entry>
<title>Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159)</title>
<updated>2019-03-04T13:21:28+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-03-04T13:21:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4d61e6e3b802399be62a521d6fa785698cb670b5'/>
<id>4d61e6e3b802399be62a521d6fa785698cb670b5</id>
<content type='text'>
* Revert "bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)"

This reverts commit bcfa450f210074e16feb761ae5b3e966a2532fcf.

* Revert "bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062)"

This reverts commit bda918bf65a88560ec453aaba0758a9c0d49b449.

* Revert "bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024)"

This reverts commit b05b711a2cef6c6c381e01069dedac372e0b9fb2.

* Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617)"

This reverts commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Revert "bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)"

This reverts commit bcfa450f210074e16feb761ae5b3e966a2532fcf.

* Revert "bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062)"

This reverts commit bda918bf65a88560ec453aaba0758a9c0d49b449.

* Revert "bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024)"

This reverts commit b05b711a2cef6c6c381e01069dedac372e0b9fb2.

* Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617)"

This reverts commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465.</pre>
</div>
</content>
</entry>
<entry>
<title>add missing break statement (GH-12147)</title>
<updated>2019-03-03T16:22:39+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2019-03-03T16:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8c17d928eb4602201d02b475caffc63340df849e'/>
<id>8c17d928eb4602201d02b475caffc63340df849e</id>
<content type='text'>
Bug introduced by 848037c.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug introduced by 848037c.</pre>
</div>
</content>
</entry>
<entry>
<title>Use names SEEK_SET, etc instead of magic number (GH-12057)</title>
<updated>2019-03-03T07:28:26+00:00</updated>
<author>
<name>ngie-eign</name>
<email>1574099+ngie-eign@users.noreply.github.com</email>
</author>
<published>2019-03-03T07:28:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=848037c1476ddf86dd2798fca35527a63c764a8a'/>
<id>848037c1476ddf86dd2798fca35527a63c764a8a</id>
<content type='text'>
The previous code hardcoded `SEEK_SET`, etc. While it's very unlikely
that these values will change, it's best to use the definitions to avoid
there being mismatches in behavior with the code in the future.

Signed-off-by: Enji Cooper &lt;yaneurabeya@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous code hardcoded `SEEK_SET`, etc. While it's very unlikely
that these values will change, it's best to use the definitions to avoid
there being mismatches in behavior with the code in the future.

Signed-off-by: Enji Cooper &lt;yaneurabeya@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)</title>
<updated>2019-03-01T23:50:31+00:00</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2019-03-01T23:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bcfa450f210074e16feb761ae5b3e966a2532fcf'/>
<id>bcfa450f210074e16feb761ae5b3e966a2532fcf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
