<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/future.c, branch misc-acks-comment</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-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>
<entry>
<title>Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIIString.</title>
<updated>2016-11-16T08:19:20+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-11-16T08:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3b73ea127892d0e1f9d8f12f88e4f9c0ba0b89b1'/>
<id>3b73ea127892d0e1f9d8f12f88e4f9c0ba0b89b1</id>
<content type='text'>
The latter function is more readable, faster and doesn't raise exceptions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latter function is more readable, faster and doesn't raise exceptions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIIString.</title>
<updated>2016-11-16T08:17:58+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-11-16T08:17:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f4934ea77da38516731a75fbf9458b248d26dd81'/>
<id>f4934ea77da38516731a75fbf9458b248d26dd81</id>
<content type='text'>
The latter function is more readable, faster and doesn't raise exceptions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latter function is more readable, faster and doesn't raise exceptions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ast.Constant</title>
<updated>2016-01-25T23:40:57+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-01-25T23:40:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f2c1aa1661edb3e14ff8b7b9995f93e303c8acbb'/>
<id>f2c1aa1661edb3e14ff8b7b9995f93e303c8acbb</id>
<content type='text'>
Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.

An optimizer can replace the following AST nodes with ast.Constant:

* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset

Update code to accept ast.Constant instead of ast.Num and/or ast.Str:

* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.

An optimizer can replace the following AST nodes with ast.Constant:

* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset

Update code to accept ast.Constant instead of ast.Num and/or ast.Str:

* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
</pre>
</div>
</content>
</entry>
</feed>
