- 23 Jul, 2015 3 commits
-
-
Yury Selivanov authored
This commit simplifies async/await tokenization in tokenizer.c, tokenize.py & lib2to3/tokenize.py. Previous solution was to keep a stack of async-def & 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.
-
Yury Selivanov authored
-
Yury Selivanov authored
-
- 22 Jul, 2015 15 commits
-
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
-
Berker Peksag authored
* Tests that index.html is served, rather than an automatic directory listing * Tests that there is no extra data sent after the response Patch by Martin Panter.
-
Yury Selivanov authored
-
Yury Selivanov authored
This commit fixes how one-line async-defs and defs are tracked by tokenizer. It allows to correctly parse invalid code such as: >>> async def f(): ... def g(): pass ... async = 10 and valid code such as: >>> 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: >>> async def foo(): return await bar()
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
- 21 Jul, 2015 6 commits
-
-
Serhiy Storchaka authored
Patch by Jacek Kołodziej.
-
Serhiy Storchaka authored
Patch by Jacek Kołodziej.
-
Yury Selivanov authored
Patch by Kai Groner.
-
Berker Peksag authored
According to the documentation, they must be decorated as classmethods.
-
Steve Dower authored
-
Steve Dower authored
-
- 20 Jul, 2015 7 commits
-
-
Terry Jan Reedy authored
-
Terry Jan Reedy authored
Original patch by Saimadhav Heblikar.
-
Serhiy Storchaka authored
for single-byte argument on Linux.
-
Victor Stinner authored
-
Victor Stinner authored
Patch written by Martin Panter. I replace tearDown() with addCleanup().
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 18 Jul, 2015 9 commits
-
-
Serhiy Storchaka authored
explicitly forbidden as well as numeric group references.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
Patch by Brian Cain.
-
Steve Dower authored
-
Steve Dower authored
-
Steve Dower authored
-