<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/future.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-38605: Make 'from __future__ import annotations' the default (GH-20434)</title>
<updated>2020-10-06T20:03:02+00:00</updated>
<author>
<name>Batuhan Taskaya</name>
<email>batuhanosmantaskaya@gmail.com</email>
</author>
<published>2020-10-06T20:03:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=044a1048ca93d466965afc027b91a5a9eb9ce23c'/>
<id>044a1048ca93d466965afc027b91a5a9eb9ce23c</id>
<content type='text'>
The hard part was making all the tests pass; there are some subtle issues here, because apparently the future import wasn't tested very thoroughly in previous Python versions.

For example, `inspect.signature()` returned type objects normally (except for forward references), but strings with the future import. We changed it to try and return type objects by calling `typing.get_type_hints()`, but fall back on returning strings if that function fails (which it may do if there are future references in the annotations that require passing in a specific namespace to resolve).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The hard part was making all the tests pass; there are some subtle issues here, because apparently the future import wasn't tested very thoroughly in previous Python versions.

For example, `inspect.signature()` returned type objects normally (except for forward references), but strings with the future import. We changed it to try and return type objects by calling `typing.get_type_hints()`, but fall back on returning strings if that function fails (which it may do if there are future references in the annotations that require passing in a specific namespace to resolve).</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-40939: Remove the old parser (Part 2) (GH-21005)</title>
<updated>2020-06-20T18:07:25+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-06-20T18:07:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=314858e2763e76e77029ea0b691d749c32939087'/>
<id>314858e2763e76e77029ea0b691d749c32939087</id>
<content type='text'>
Remove some remaining files and Makefile targets for the old parser</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove some remaining files and Makefile targets for the old parser</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338)</title>
<updated>2018-09-24T21:12:49+00:00</updated>
<author>
<name>Ammar Askar</name>
<email>ammar_askar@hotmail.com</email>
</author>
<published>2018-09-24T21:12:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=025eb98dc0c1dc27404df6c544fc2944e0fa9f3a'/>
<id>025eb98dc0c1dc27404df6c544fc2944e0fa9f3a</id>
<content type='text'>
Also point to start of tokens in parsing errors.

Fixes bpo-34683
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also point to start of tokens in parsing errors.

Fixes bpo-34683
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33691: Add _PyAST_GetDocString(). (GH-7236)</title>
<updated>2018-05-30T07:56:16+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-05-30T07:56:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=143ce5c6db77a0b9d451b8463dee6752358a9ea4'/>
<id>143ce5c6db77a0b9d451b8463dee6752358a9ea4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)</title>
<updated>2018-05-29T09:04:55+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-05-29T09:04:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=73cbe7a01a22d02dbe1ec841e8779c775cad3d08'/>
<id>73cbe7a01a22d02dbe1ec841e8779c775cad3d08</id>
<content type='text'>
Remove the docstring attribute of AST types and restore docstring
expression as a first stmt in their body.

Co-authored-by: INADA Naoki &lt;methane@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the docstring attribute of AST types and restore docstring
expression as a first stmt in their body.

Co-authored-by: INADA Naoki &lt;methane@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32670: Enforce PEP 479. (#5327)</title>
<updated>2018-01-26T20:24:24+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yury@magic.io</email>
</author>
<published>2018-01-26T20:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=43c47fe09640c579462978ec16f81295f5857cde'/>
<id>43c47fe09640c579462978ec16f81295f5857cde</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>String annotations [PEP 563] (#4390)</title>
<updated>2018-01-26T16:20:18+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2018-01-26T16:20:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=95e4d589137260530e18ef98a2ed84ee3ec57e12'/>
<id>95e4d589137260530e18ef98a2ed84ee3ec57e12</id>
<content type='text'>
* Document `from __future__ import annotations`
* Provide plumbing and tests for `from __future__ import annotations`
* Implement unparsing the AST back to string form

This is required for PEP 563 and as such only implements a part of the
unparsing process that covers expressions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Document `from __future__ import annotations`
* Provide plumbing and tests for `from __future__ import annotations`
* Implement unparsing the AST back to string form

This is required for PEP 563 and as such only implements a part of the
unparsing process that covers expressions.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29463: Add docstring field to some AST nodes. (#46)</title>
<updated>2017-02-22T15:31:59+00:00</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-02-22T15:31:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cb41b2766de646435743b6af7dd152751b54e73f'/>
<id>cb41b2766de646435743b6af7dd152751b54e73f</id>
<content type='text'>
* bpo-29463: Add docstring field to some AST nodes.

ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring
field for now.  It was first statement of there body.

* fix document.  thanks travis!

* doc fixes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-29463: Add docstring field to some AST nodes.

ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring
field for now.  It was first statement of there body.

* fix document.  thanks travis!

* doc fixes
</pre>
</div>
</content>
</entry>
<entry>
<title>Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize</title>
<updated>2016-11-20T07:13:07+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-11-20T07:13:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=06515833fef7b8b5c7968edf72367d94ff7eb1e0'/>
<id>06515833fef7b8b5c7968edf72367d94ff7eb1e0</id>
<content type='text'>
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
</pre>
</div>
</content>
</entry>
</feed>
