Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-25324: add missing comma in Parser/tokenizer.c (GH-1910) | Albert-Jan Nijburg | 2017-06-01 | 1 | -1/+1 |
| | |||||
* | bpo-25324: copy tok_name before changing it (#1608) | Albert-Jan Nijburg | 2017-05-31 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | * add test to check if were modifying token * copy list so import tokenize doesnt have side effects on token * shorten line * add tokenize tokens to token.h to get them to show up in token * move ERRORTOKEN back to its previous location, and fix nitpick * copy comments from token.h automatically * fix whitespace and make more pythonic * change to fix comments from @haypo * update token.rst and Misc/NEWS * change wording * some more wording changes | ||||
* | Issue #28489: Merge from 3.6 | Berker Peksag | 2017-02-05 | 1 | -1/+1 |
|\ | |||||
| * | Issue #28489: Fix comment in tokenizer.c | Berker Peksag | 2017-02-05 | 1 | -1/+1 |
| | | | | | | | | Patch by Ryan Gonzalez. | ||||
* | | Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-06 | 1 | -3/+3 |
|/ | | | | | | | Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable) | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | merge 3.5 (#24022) | Benjamin Peterson | 2016-09-19 | 1 | -1/+1 |
|\ | |||||
| * | merge 3.4 | Benjamin Peterson | 2016-09-19 | 1 | -1/+1 |
| |\ | |||||
| | * | properly handle the single null-byte file (closes #24022) | Benjamin Peterson | 2016-09-19 | 1 | -1/+1 |
| | | | |||||
* | | | merge 3.5 (#27981) | Benjamin Peterson | 2016-09-13 | 1 | -15/+17 |
|\ \ \ | |/ / | |||||
| * | | restructure fp_setreadl so as to avoid refleaks (closes #27981) | Benjamin Peterson | 2016-09-13 | 1 | -15/+17 |
| | | | |||||
* | | | Issue #26331: Implement the parsing part of PEP 515. | Brett Cannon | 2016-09-09 | 1 | -68/+162 |
| | | | | | | | | | | | | Thanks to Georg Brandl for the patch. | ||||
* | | | Skip unused value in tokenizer code | Christian Heimes | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | In the case of an escape character, c is never read. tok_next() is used to advance the pointer. CID 1225097 | ||||
* | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | | | |||||
* | | | remove duplicated check for fractions and complex numbers (closes #26076) | Benjamin Peterson | 2016-03-25 | 1 | -4/+0 |
| | | | | | | | | | | | | Patch by Oren Milman. | ||||
* | | | Issue #26581: Use the first coding cookie on a line, not the last one. | Serhiy Storchaka | 2016-03-20 | 1 | -0/+1 |
|\ \ \ | |/ / | |||||
| * | | Issue #26581: Use the first coding cookie on a line, not the last one. | Serhiy Storchaka | 2016-03-20 | 1 | -0/+1 |
| | | | |||||
* | | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -3/+3 |
| | | | | | | | | | | | | private functions. | ||||
* | | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
|\ \ \ | |/ / | | | | | | | macro Py_SETREF. | ||||
| * | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | | | | | | | | | macro Py_SETREF. | ||||
* | | | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
|\ \ \ | |/ / | | | | | | | with a null byte. | ||||
| * | | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
| |\ \ | | |/ | | | | | | | with a null byte. | ||||
| | * | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
| | | | | | | | | | | | | with a null byte. | ||||
* | | | Issue #24965: Implement PEP 498 "Literal String Interpolation". ↵ | Eric V. Smith | 2015-09-19 | 1 | -3/+5 |
| | | | | | | | | | | | | Documentation is still needed, I'll open an issue for that. | ||||
* | | | Fixed indentation. | Eric V. Smith | 2015-09-12 | 1 | -1/+1 |
|/ / | |||||
* | | Issue #24619: Simplify async/await tokenization. | Yury Selivanov | 2015-07-23 | 1 | -87/+39 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Issue #24619: New approach for tokenizing async/await. | Yury Selivanov | 2015-07-22 | 1 | -35/+70 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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() | ||||
* | | Issue 24226: Fix parsing of many sequential one-line 'def' statements. | Yury Selivanov | 2015-05-18 | 1 | -8/+17 |
| | | |||||
* | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -0/+68 |
| | | |||||
* | | merge 3.4 (#24022) | Benjamin Peterson | 2015-04-21 | 1 | -4/+3 |
|\ \ | |/ | |||||
| * | do not call into python api if an exception is set (#24022) | Benjamin Peterson | 2015-04-21 | 1 | -4/+3 |
| | | |||||
* | | merge 3.4 (#21642) | Benjamin Peterson | 2014-06-07 | 1 | -5/+14 |
|\ \ | |/ | |||||
| * | allow the keyword else immediately after (no space) an integer (closes #21642) | Benjamin Peterson | 2014-06-07 | 1 | -5/+14 |
| | | |||||
* | | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) | Benjamin Peterson | 2014-04-10 | 1 | -1/+7 |
|/ | |||||
* | Merge with 3.3 | Martin v. Löwis | 2014-02-28 | 1 | -2/+12 |
|\ | |||||
| * | Issue #20731: Properly position in source code files even if they | Martin v. Löwis | 2014-02-28 | 1 | -2/+12 |
| | | | | | | | | are opened in text mode. Patch by Serhiy Storchaka. | ||||
* | | Do not reset the line number because we already set file position to correct | Serhiy Storchaka | 2014-01-09 | 1 | -8/+0 |
|\ \ | |/ | | | | | | | | | value. (fixes error in patch for issue #18960) | ||||
| * | Do not reset the line number because we already set file position to correct | Serhiy Storchaka | 2014-01-09 | 1 | -8/+0 |
| | | | | | | | | | | | | value. (fixes error in patch for issue #18960) | ||||
* | | Issue #18960: Fix bugs with Python source code encoding in the second line. | Serhiy Storchaka | 2014-01-09 | 1 | -4/+22 |
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment. | ||||
| * | Issue #18960: Fix bugs with Python source code encoding in the second line. | Serhiy Storchaka | 2014-01-09 | 1 | -4/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment. | ||||
* | | Issue #1772673: The type of `char*` arguments now changed to `const char*`. | Serhiy Storchaka | 2013-10-19 | 1 | -3/+4 |
| | | |||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -0/+5 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -6/+6 |
| | | |||||
* | | merge 3.3 | Benjamin Peterson | 2013-07-16 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | move declaration to top of block | Benjamin Peterson | 2013-07-16 | 1 | -1/+2 |
| | | |||||
* | | merge 3.3 (closes #18470) | Benjamin Peterson | 2013-07-16 | 1 | -36/+46 |
|\ \ | |/ | |||||
| * | check the return value of new_string() (closes #18470) | Benjamin Peterson | 2013-07-16 | 1 | -36/+46 |
| | | |||||
* | | Issue #18038: SyntaxError raised during compilation sources with illegal | Serhiy Storchaka | 2013-06-09 | 1 | -7/+7 |
|\ \ | |/ | | | | | encoding now always contains an encoding name. | ||||
| * | Issue #18038: SyntaxError raised during compilation sources with illegal | Serhiy Storchaka | 2013-06-09 | 1 | -7/+7 |
| | | | | | | | | encoding now always contains an encoding name. |