<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Parser, branch refactor-lambda-parameters</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>Merge remote-tracking branch 'origin/master' into refactor-lambda-parameters</title>
<updated>2020-05-01T03:59:30+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-05-01T03:59:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0be7a2bb0c0c4f7a1317338726176eb267a1c709'/>
<id>0be7a2bb0c0c4f7a1317338726176eb267a1c709</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Add support for feature_version in new PEG parser (GH-19827)</title>
<updated>2020-05-01T03:27:52+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-05-01T03:27:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3e0a6f37dfdd595be737baae00ec0e036a912615'/>
<id>3e0a6f37dfdd595be737baae00ec0e036a912615</id>
<content type='text'>
`ast.parse` and `compile` support a `feature_version` parameter that
tells the parser to parse the input string, as if it were written in
an older Python version.
The `feature_version` is propagated to the tokenizer, which uses it
to handle the three different stages of support for `async` and
`await`. Additionally, it disallows the following at parser level:
- The '@' operator in &lt; 3.5
- Async functions in &lt; 3.5
- Async comprehensions in &lt; 3.6
- Underscores in numeric literals in &lt; 3.6
- Await expression in &lt; 3.5
- Variable annotations in &lt; 3.6
- Async for-loops in &lt; 3.5
- Async with-statements in &lt; 3.5
- F-strings in &lt; 3.6

Closes we-like-parsers/cpython#124.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`ast.parse` and `compile` support a `feature_version` parameter that
tells the parser to parse the input string, as if it were written in
an older Python version.
The `feature_version` is propagated to the tokenizer, which uses it
to handle the three different stages of support for `async` and
`await`. Additionally, it disallows the following at parser level:
- The '@' operator in &lt; 3.5
- Async functions in &lt; 3.5
- Async comprehensions in &lt; 3.6
- Underscores in numeric literals in &lt; 3.6
- Await expression in &lt; 3.5
- Variable annotations in &lt; 3.6
- Async for-loops in &lt; 3.5
- Async with-statements in &lt; 3.5
- F-strings in &lt; 3.6

Closes we-like-parsers/cpython#124.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix an oversight (kwds -&gt; lambda_kwds)</title>
<updated>2020-05-01T03:18:18+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-05-01T03:18:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c73ab8934487d0dc88ce4a8ed230bae100ff3776'/>
<id>c73ab8934487d0dc88ce4a8ed230bae100ff3776</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor lambda_parameters similar to parameters</title>
<updated>2020-05-01T02:55:30+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-05-01T02:55:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=13c3fd2f38ba4a3cded83f74b543bef3e1a3b320'/>
<id>13c3fd2f38ba4a3cded83f74b543bef3e1a3b320</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Support type comments (GH-19780)</title>
<updated>2020-04-30T19:12:19+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-30T19:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c001c09e9059ba04bc088349cd87a1374dc0754f'/>
<id>c001c09e9059ba04bc088349cd87a1374dc0754f</id>
<content type='text'>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: refactor and cleanup for the PEG generators (GH-19775)</title>
<updated>2020-04-29T09:42:21+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-29T09:42:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4db245ee9ddbe6c53d375de59a35ff59dea2a8e0'/>
<id>4db245ee9ddbe6c53d375de59a35ff59dea2a8e0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Disallow invalid single statements in the new parser (GH-19774)</title>
<updated>2020-04-29T01:42:27+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-29T01:42:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6d6508765514c7c10719478a0430f5e47c9a96ac'/>
<id>6d6508765514c7c10719478a0430f5e47c9a96ac</id>
<content type='text'>
After parsing is done in single statement mode, the tokenizer buffer has to be checked for additional lines and a `SyntaxError` must be raised, in case there are any.

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After parsing is done in single statement mode, the tokenizer buffer has to be checked for additional lines and a `SyntaxError` must be raised, in case there are any.

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Explicitly cast to int in pegen.c to fix a compiler warning (GH-19779)</title>
<updated>2020-04-29T01:04:06+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-29T01:04:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2208134918ee673451e4fc525bbeab71142d794a'/>
<id>2208134918ee673451e4fc525bbeab71142d794a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771)</title>
<updated>2020-04-29T00:43:50+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-29T00:43:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=37af21b667a9f41437b5b8e451497d7725016df5'/>
<id>37af21b667a9f41437b5b8e451497d7725016df5</id>
<content type='text'>
`JoinedStr`s and `FormattedValue also needs to be shifted, in order to correctly compute the location information of nested f-strings.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`JoinedStr`s and `FormattedValue also needs to be shifted, in order to correctly compute the location information of nested f-strings.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Catch E_EOF error, when the tokenizer returns ERRORTOKEN (GH-19743)</title>
<updated>2020-04-28T00:23:35+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-28T00:23:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d55133f49fe678fbf047a647aa8bb8b520410e8d'/>
<id>d55133f49fe678fbf047a647aa8bb8b520410e8d</id>
<content type='text'>
An E_EOF error was only being caught after the parser exited before this commit. There are some cases though, where the tokenizer returns ERRORTOKEN *and* has set an E_EOF error (like when EOF directly follows a line continuation character) which weren't correctly handled before.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An E_EOF error was only being caught after the parser exited before this commit. There are some cases though, where the tokenizer returns ERRORTOKEN *and* has set an E_EOF error (like when EOF directly follows a line continuation character) which weren't correctly handled before.</pre>
</div>
</content>
</entry>
</feed>
