<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/clinic, 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>bpo-36101: remove non-ascii characters in docstring (GH-12018)</title>
<updated>2019-02-24T23:18:48+00:00</updated>
<author>
<name>animalize</name>
<email>animalize@users.noreply.github.com</email>
</author>
<published>2019-02-24T23:18:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=463572c8beb59fd9d6850440af48a5c5f4c0c0c9'/>
<id>463572c8beb59fd9d6850440af48a5c5f4c0c0c9</id>
<content type='text'>
* remove non-ascii characters in docstring
* clinic.py emits a warning when docstring has non-ascii character
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* remove non-ascii characters in docstring
* clinic.py emits a warning when docstring has non-ascii character
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520)</title>
<updated>2019-01-11T16:01:42+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-01-11T16:01:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2a39d251f07d4c620e3b9a1848e3d1eb3067be64'/>
<id>2a39d251f07d4c620e3b9a1848e3d1eb3067be64</id>
<content type='text'>
Use _PyArg_CheckPositional() and inlined code instead of
PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters
are positional and use the "object" converter.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use _PyArg_CheckPositional() and inlined code instead of
PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters
are positional and use the "object" converter.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35582: Argument Clinic: inline parsing code for positional parameters. (GH-11313)</title>
<updated>2019-01-11T14:01:14+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-01-11T14:01:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4fa9591025b6a098f3d6402e5413ee6740ede6c5'/>
<id>4fa9591025b6a098f3d6402e5413ee6740ede6c5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-20182: AC convert Python/sysmodule.c (GH-11328)</title>
<updated>2018-12-31T15:12:08+00:00</updated>
<author>
<name>Tal Einat</name>
<email>taleinat+github@gmail.com</email>
</author>
<published>2018-12-31T15:12:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ede0b6fae20290bf22b6ee1b9a1e1179d750f360'/>
<id>ede0b6fae20290bf22b6ee1b9a1e1179d750f360</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. (GH-9689)</title>
<updated>2018-12-25T11:23:47+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-12-25T11:23:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=32d96a2b5bc3136d45a66adbdb45fac351b520ce'/>
<id>32d96a2b5bc3136d45a66adbdb45fac351b520ce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. (GH-6748)</title>
<updated>2018-11-27T09:27:36+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-11-27T09:27:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4a934d490fac779d8954a8292369c4506bab23fa'/>
<id>4a934d490fac779d8954a8292369c4506bab23fa</id>
<content type='text'>
Fix invalid function cast warnings with gcc 8
for method conventions different from METH_NOARGS, METH_O and
METH_VARARGS in Argument Clinic generated code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix invalid function cast warnings with gcc 8
for method conventions different from METH_NOARGS, METH_O and
METH_VARARGS in Argument Clinic generated code.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34637: Make the *start* argument for *sum()* visible as a keyword argument. (GH-9208)</title>
<updated>2018-09-12T17:54:06+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-09-12T17:54:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9dfa0fe587eae3626ffc973680c6a17f35de3864'/>
<id>9dfa0fe587eae3626ffc973680c6a17f35de3864</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add docstrings to public methods from context.c (GH-8531)</title>
<updated>2018-07-30T15:15:44+00:00</updated>
<author>
<name>Peter Lamut</name>
<email>plamut@users.noreply.github.com</email>
</author>
<published>2018-07-30T15:15:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=20678fd8740de31e5b078a470a0f7629b0994f51'/>
<id>20678fd8740de31e5b078a470a0f7629b0994f51</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32436: Implement PEP 567 (#5027)</title>
<updated>2018-01-23T00:11:18+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yury@magic.io</email>
</author>
<published>2018-01-23T00:11:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f23746a934177c48eff754411aba54c31d6be2f0'/>
<id>f23746a934177c48eff754411aba54c31d6be2f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
