<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/symtable.c, branch Mariatta-patch-2</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-42006: Stop using PyDict_GetItem, PyDict_GetItemString and _PyDict_GetItemId. (GH-22648)</title>
<updated>2020-10-26T06:43:39+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-26T06:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fb5db7ec58624cab0797b4050735be865d380823'/>
<id>fb5db7ec58624cab0797b4050735be865d380823</id>
<content type='text'>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions are considered not safe because they suppress all internal errors
and can return wrong result.  PyDict_GetItemString and _PyDict_GetItemId can
also silence current exception in rare cases.

Remove no longer used _PyDict_GetItemId.
Add _PyDict_ContainsId and rename _PyDict_Contains into
_PyDict_Contains_KnownHash.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41746: Add type information to asdl_seq objects (GH-22223)</title>
<updated>2020-09-16T18:42:00+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-09-16T18:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a5634c406767ef694df49b624adf9cfa6c0d9064'/>
<id>a5634c406767ef694df49b624adf9cfa6c0d9064</id>
<content type='text'>
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40268: Remove unused structmember.h includes (GH-19530)</title>
<updated>2020-04-15T00:35:41+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-15T00:35:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4a21e57fe55076c77b0ee454e1994ca544d09dc0'/>
<id>4a21e57fe55076c77b0ee454e1994ca544d09dc0</id>
<content type='text'>
If only offsetof() is needed: include stddef.h instead.

When structmember.h is used, add a comment explaining that
PyMemberDef is used.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If only offsetof() is needed: include stddef.h instead.

When structmember.h is used, add a comment explaining that
PyMemberDef is used.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40268: Remove a few pycore_pystate.h includes (GH-19510)</title>
<updated>2020-04-14T15:52:15+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-14T15:52:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e5014be0497d06d78343623588a80f491a6f7b74'/>
<id>e5014be0497d06d78343623588a80f491a6f7b74</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34822: Simplify AST for subscription. (GH-9605)</title>
<updated>2020-03-10T16:52:34+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-03-10T16:52:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=13d52c268699f199a8e917a0f1dc4c51e5346c42'/>
<id>13d52c268699f199a8e917a0f1dc4c51e5346c42</id>
<content type='text'>
* Remove the slice type.
* Make Slice a kind of the expr type instead of the slice type.
* Replace ExtSlice(slices) with Tuple(slices, Load()).
* Replace Index(value) with a value itself.

All non-terminal nodes in AST for expressions are now of the expr type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove the slice type.
* Make Slice a kind of the expr type instead of the slice type.
* Replace ExtSlice(slices) with Tuple(slices, Load()).
* Replace Index(value) with a value itself.

All non-terminal nodes in AST for expressions are now of the expr type.
</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-39872: Remove unused args from symtable_exit_block and symtable_visit_annotations. (GH-18800)</title>
<updated>2020-03-06T15:46:04+00:00</updated>
<author>
<name>Andy Lester</name>
<email>andy@petdance.com</email>
</author>
<published>2020-03-06T15:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9566842e892c1f600e1dcfadaab4643be8f32901'/>
<id>9566842e892c1f600e1dcfadaab4643be8f32901</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)</title>
<updated>2020-03-04T16:16:46+00:00</updated>
<author>
<name>Batuhan Taşkaya</name>
<email>47358913+isidentical@users.noreply.github.com</email>
</author>
<published>2020-03-04T16:16:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=d82e469048e0e034d8c0020cd33b733be1adf68b'/>
<id>d82e469048e0e034d8c0020cd33b733be1adf68b</id>
<content type='text'>
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...).

Co-Authored-By: Victor Stinner &lt;vstinner@python.org&gt;
Co-authored-by: Brett Cannon &lt;54418+brettcannon@users.noreply.github.com&gt;
Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...).

Co-Authored-By: Victor Stinner &lt;vstinner@python.org&gt;
Co-authored-by: Brett Cannon &lt;54418+brettcannon@users.noreply.github.com&gt;
Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix SystemError when nested function has annotation on positional-only argument (GH-17826)</title>
<updated>2020-01-05T01:57:21+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2020-01-05T01:57:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ec007cb43faf5f33d06efbc28152c7fdcb2edb9c'/>
<id>ec007cb43faf5f33d06efbc28152c7fdcb2edb9c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38469: Handle named expression scope with global/nonlocal keywords (GH-16755)</title>
<updated>2019-10-14T04:18:05+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-10-14T04:18:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fd5c414880b2e05720b9cf14ab0b0d7ae2b7d925'/>
<id>fd5c414880b2e05720b9cf14ab0b0d7ae2b7d925</id>
<content type='text'>
The symbol table handing of PEP572's assignment expressions is not resolving correctly the scope of some variables in presence of global/nonlocal keywords in conjunction with comprehensions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The symbol table handing of PEP572's assignment expressions is not resolving correctly the scope of some variables in presence of global/nonlocal keywords in conjunction with comprehensions.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37947: Avoid double-decrement in symtable recursion counting (GH-15593)</title>
<updated>2019-08-29T13:26:53+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2019-08-29T13:26:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=06145230c833c3db5dab8858e11bcd550a37c57f'/>
<id>06145230c833c3db5dab8858e11bcd550a37c57f</id>
<content type='text'>
With `symtable_visit_expr` now correctly adjusting the recursion depth for named
expressions, `symtable_handle_namedexpr` should be leaving it alone.

Also adds a new check to `PySymtable_BuildObject` that raises `SystemError`
if a successful first symbol analysis pass fails to keep the stack depth
accounting clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With `symtable_visit_expr` now correctly adjusting the recursion depth for named
expressions, `symtable_handle_namedexpr` should be leaving it alone.

Also adds a new check to `PySymtable_BuildObject` that raises `SystemError`
if a successful first symbol analysis pass fails to keep the stack depth
accounting clean.
</pre>
</div>
</content>
</entry>
</feed>
