<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Parser/tokenizer.c, branch fix-namedexpr-comment</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>bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)</title>
<updated>2019-12-09T04:36:27+00:00</updated>
<author>
<name>Batuhan Taşkaya</name>
<email>47358913+isidentical@users.noreply.github.com</email>
</author>
<published>2019-12-09T04:36:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=109fc2792a490ee5cd8a423e17d415fbdedec5c8'/>
<id>109fc2792a490ee5cd8a423e17d415fbdedec5c8</id>
<content type='text'>
https://bugs.python.org/issue38673</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugs.python.org/issue38673</pre>
</div>
</content>
</entry>
<entry>
<title>Indent code inside if block. (GH-15284)</title>
<updated>2019-08-15T16:19:07+00:00</updated>
<author>
<name>Hansraj Das</name>
<email>raj.das.136@gmail.com</email>
</author>
<published>2019-08-15T16:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=69f37bcb28d7cd78255828029f895958b5baf6ff'/>
<id>69f37bcb28d7cd78255828029f895958b5baf6ff</id>
<content type='text'>
Without indendation, seems like strcpy line is parallel to `if` condition.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without indendation, seems like strcpy line is parallel to `if` condition.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix `SyntaxError` indicator printing too many spaces for multi-line strings (GH-14433)</title>
<updated>2019-07-29T13:59:13+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-07-29T13:59:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5b94f3578c662d5f1ee90c0e6b81481d9ec82d89'/>
<id>5b94f3578c662d5f1ee90c0e6b81481d9ec82d89</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36878: Only allow text after `# type: ignore` if first character ASCII (GH-13504)</title>
<updated>2019-05-22T20:43:36+00:00</updated>
<author>
<name>Michael J. Sullivan</name>
<email>sully@msully.net</email>
</author>
<published>2019-05-22T20:43:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d8a82e2897b735e2b7e9e086f1d709365a2ad72c'/>
<id>d8a82e2897b735e2b7e9e086f1d709365a2ad72c</id>
<content type='text'>
This disallows things like `# type: ignoreé`, which seems wrong.

Also switch to using Py_ISALNUM for the alnum check, for consistency
with other code (and maybe correctness re: locale issues?).


https://bugs.python.org/issue36878</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This disallows things like `# type: ignoreé`, which seems wrong.

Also switch to using Py_ISALNUM for the alnum check, for consistency
with other code (and maybe correctness re: locale issues?).


https://bugs.python.org/issue36878</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36878: Track extra text added to 'type: ignore' in the AST (GH-13479)</title>
<updated>2019-05-22T14:54:20+00:00</updated>
<author>
<name>Michael J. Sullivan</name>
<email>sully@msully.net</email>
</author>
<published>2019-05-22T14:54:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=933e1509ec6efa8e6ab8c8c7ce02059ce2b6d9b9'/>
<id>933e1509ec6efa8e6ab8c8c7ce02059ce2b6d9b9</id>
<content type='text'>
GH-13238 made extra text after a # type: ignore accepted by the parser.
This finishes the job and actually plumbs the extra text through the
parser and makes it available in the AST.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GH-13238 made extra text after a # type: ignore accepted by the parser.
This finishes the job and actually plumbs the extra text through the
parser and makes it available in the AST.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-2180: Treat line continuation at EOF as a `SyntaxError` (GH-13401)</title>
<updated>2019-05-18T18:27:16+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-05-18T18:27:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=abea73bf4a320ff658c9a98fef3d948a142e61a9'/>
<id>abea73bf4a320ff658c9a98fef3d948a142e61a9</id>
<content type='text'>
This makes the parser consistent with the tokenize module (already the case
in `pypy`).

sample
------

```python
x = 5\
```

before
------

```console
$ python3 t.py
$ python3 -mtokenize t.py
t.py:2:0: error: EOF in multi-line statement
```

after
-----

```console
$ ./python t.py
  File "t.py", line 3
    x = 5\

         ^
SyntaxError: unexpected EOF while parsing
$ ./python -m tokenize t.py
t.py:2:0: error: EOF in multi-line statement
```



https://bugs.python.org/issue2180</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the parser consistent with the tokenize module (already the case
in `pypy`).

sample
------

```python
x = 5\
```

before
------

```console
$ python3 t.py
$ python3 -mtokenize t.py
t.py:2:0: error: EOF in multi-line statement
```

after
-----

```console
$ ./python t.py
  File "t.py", line 3
    x = 5\

         ^
SyntaxError: unexpected EOF while parsing
$ ./python -m tokenize t.py
t.py:2:0: error: EOF in multi-line statement
```



https://bugs.python.org/issue2180</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36878: Allow extra text after `# type: ignore` comments (GH-13238)</title>
<updated>2019-05-11T18:17:24+00:00</updated>
<author>
<name>Michael J. Sullivan</name>
<email>sully@msully.net</email>
</author>
<published>2019-05-11T18:17:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d8320ecb86da8df7c13d8bf8582507f736aa2924'/>
<id>d8320ecb86da8df7c13d8bf8582507f736aa2924</id>
<content type='text'>
In the parser, when using the type_comments=True option, recognize
a TYPE_IGNORE as anything containing `# type: ignore` followed by
a non-alphanumeric character. This is to allow ignores such as
`# type: ignore[E1000]`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the parser, when using the type_comments=True option, recognize
a TYPE_IGNORE as anything containing `# type: ignore` followed by
a non-alphanumeric character. This is to allow ignores such as
`# type: ignore[E1000]`.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36623: Clean parser headers and include files (GH-12253)</title>
<updated>2019-04-13T16:05:14+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-04-13T16:05:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f2cf1e3e2892a6326949c2570f1bb6d6c95715fb'/>
<id>f2cf1e3e2892a6326949c2570f1bb6d6c95715fb</id>
<content type='text'>
After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)</title>
<updated>2019-03-28T13:53:00+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-03-28T13:53:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cda139d1ded6708665b53e4ed32ccc1d2627e1da'/>
<id>cda139d1ded6708665b53e4ed32ccc1d2627e1da</id>
<content type='text'>
Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442)</title>
<updated>2019-03-19T17:17:58+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-03-19T17:17:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cb90c89de14aab636739b3e810cf949e47b54a0c'/>
<id>cb90c89de14aab636739b3e810cf949e47b54a0c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
