<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Parser/tokenizer.h, branch master</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>Issue #24619: Simplify async/await tokenization.</title>
<updated>2015-07-23T12:01:58+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yselivanov@sprymix.com</email>
</author>
<published>2015-07-23T12:01:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=97de150fd93a4921cd5d4bd81110420095c8ce29'/>
<id>97de150fd93a4921cd5d4bd81110420095c8ce29</id>
<content type='text'>
This commit simplifies async/await tokenization in tokenizer.c,
tokenize.py &amp; lib2to3/tokenize.py.  Previous solution was to keep
a stack of async-def &amp; def blocks, whereas the new approach is just
to remember position of the outermost async-def block.

This change won't bring any parsing performance improvements, but
it makes the code much easier to read and validate.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit simplifies async/await tokenization in tokenizer.c,
tokenize.py &amp; lib2to3/tokenize.py.  Previous solution was to keep
a stack of async-def &amp; def blocks, whereas the new approach is just
to remember position of the outermost async-def block.

This change won't bring any parsing performance improvements, but
it makes the code much easier to read and validate.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24619: New approach for tokenizing async/await.</title>
<updated>2015-07-22T10:33:45+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yselivanov@sprymix.com</email>
</author>
<published>2015-07-22T10:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=35c1e53a87bc711efc72fcdd5ce25b9f124ab563'/>
<id>35c1e53a87bc711efc72fcdd5ce25b9f124ab563</id>
<content type='text'>
This commit fixes how one-line async-defs and defs are tracked
by tokenizer.  It allows to correctly parse invalid code such
as:

&gt;&gt;&gt; async def f():
...     def g(): pass
...     async = 10

and valid code such as:

&gt;&gt;&gt; async def f():
...     async def g(): pass
...     await z

As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:

&gt;&gt;&gt; async def foo(): return await bar()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes how one-line async-defs and defs are tracked
by tokenizer.  It allows to correctly parse invalid code such
as:

&gt;&gt;&gt; async def f():
...     def g(): pass
...     async = 10

and valid code such as:

&gt;&gt;&gt; async def f():
...     async def g(): pass
...     await z

As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:

&gt;&gt;&gt; async def foo(): return await bar()
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP 0492 -- Coroutines with async and await syntax. Issue #24017.</title>
<updated>2015-05-12T02:57:16+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yselivanov@sprymix.com</email>
</author>
<published>2015-05-12T02:57:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=ea639832c36905ecb07caba111f614c4bbf9bdd6'/>
<id>ea639832c36905ecb07caba111f614c4bbf9bdd6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #1772673: The type of `char*` arguments now changed to `const char*`.</title>
<updated>2013-10-19T18:03:34+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2013-10-19T18:03:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=6e75c19396402b107f1dfffa8746c6b8b679a9a4'/>
<id>6e75c19396402b107f1dfffa8746c6b8b679a9a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error.</title>
<updated>2011-04-04T23:48:03+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-04-04T23:48:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=f41c2fdbb05ad29ad7c2a6a65dfac2e9d919f022'/>
<id>f41c2fdbb05ad29ad7c2a6a65dfac2e9d919f022</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #10785: Store the filename as Unicode in the Python parser.</title>
<updated>2011-04-04T22:39:01+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2011-04-04T22:39:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=8136044f569744c1f5fbb37a093e2728db859ee0'/>
<id>8136044f569744c1f5fbb37a093e2728db859ee0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#10222: fix for overzealous AIX compiler.</title>
<updated>2010-10-29T04:54:13+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2010-10-29T04:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=5f677e9aa59ed0969ec7eae85ad8c612c0abdafe'/>
<id>5f677e9aa59ed0969ec7eae85ad8c612c0abdafe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects</title>
<updated>2010-10-16T13:14:10+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2010-10-16T13:14:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=24c7fa3b4d2daf8a3b9d1b3c143e6a55b5b2b4d5'/>
<id>24c7fa3b4d2daf8a3b9d1b3c143e6a55b5b2b4d5</id>
<content type='text'>
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file</title>
<updated>2010-10-14T12:04:34+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2010-10-14T12:04:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=7c73635b5819332a4b0eefb160ae9d1045614dbf'/>
<id>7c73635b5819332a4b0eefb160ae9d1045614dbf</id>
<content type='text'>
descriptor.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
descriptor.
</pre>
</div>
</content>
</entry>
<entry>
<title>Recorded merge of revisions 81029 via svnmerge from</title>
<updated>2010-05-09T15:52:27+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2010-05-09T15:52:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=567b94adaaceb622c33f9be1998735dfb95f1707'/>
<id>567b94adaaceb622c33f9be1998735dfb95f1707</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

  Untabify C files. Will watch buildbots.
........
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

  Untabify C files. Will watch buildbots.
........
</pre>
</div>
</content>
</entry>
</feed>
