Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | 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-11 | 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-09 | 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-28 | 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-15 | 1 | -1/+2 | |
|\ \ | |/ | ||||||
| * | move declaration to top of block | Benjamin Peterson | 2013-07-15 | 1 | -1/+2 | |
| | | ||||||
* | | merge 3.3 (closes #18470) | Benjamin Peterson | 2013-07-15 | 1 | -36/+46 | |
|\ \ | |/ | ||||||
| * | check the return value of new_string() (closes #18470) | Benjamin Peterson | 2013-07-15 | 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. | |||||
* | | Issue #9566: Fix compiler warning on Windows 64-bit | Victor Stinner | 2013-06-05 | 1 | -1/+2 | |
| | | ||||||
* | | make _PyParser_TokenNames const | Benjamin Peterson | 2012-10-24 | 1 | -1/+1 | |
|/ | ||||||
* | Issue #15096: Drop support for the ur string prefix | Christian Heimes | 2012-06-20 | 1 | -2/+3 | |
| | ||||||
* | Basic support for PEP 414 without docs or tests. | Armin Ronacher | 2012-03-04 | 1 | -3/+7 | |
| | ||||||
* | Issue #13748: Raw bytes literals can now be written with the `rb` prefix as ↵ | Antoine Pitrou | 2012-01-12 | 1 | -7/+9 | |
| | | | | well as `br`. | |||||
* | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -2/+2 | |
| | ||||||
* | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -1/+2 | |
| | ||||||
* | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -1/+2 | |
| | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | |||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -2/+4 | |
| | ||||||
* | Revert bb62908896fe, but keep the test | Jesus Cea | 2011-04-25 | 1 | -13/+6 | |
| | ||||||
* | Correctly merging #9319 into 3.3? | Jesus Cea | 2011-04-25 | 1 | -6/+13 | |
|\ | ||||||
| * | Issue #9319: Fix a crash on parsing a Python source code without encoding | Victor Stinner | 2011-04-23 | 1 | -1/+4 | |
| | | | | | | | | | | cookie and not valid in UTF-8: use "<file>" as the filename instead of reading from NULL. | |||||
* | | Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error. | Victor Stinner | 2011-04-05 | 1 | -14/+27 | |
| | | ||||||
* | | Issue #10785: Store the filename as Unicode in the Python parser. | Victor Stinner | 2011-04-05 | 1 | -13/+22 | |
|/ | ||||||
* | Issue #10841: don't translate newlines for pgen | Victor Stinner | 2011-01-07 | 1 | -1/+1 | |
| | ||||||
* | Issue #10841: set binary mode on files; the parser translates newlines | Victor Stinner | 2011-01-07 | 1 | -0/+7 | |
| | | | | | | On Windows, set the binary mode on stdin, stdout, stderr and all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser translates newlines (\r\n => \n). | |||||
* | Remove arbitrary string length limits | Victor Stinner | 2011-01-05 | 1 | -1/+1 | |
| | | | | | PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed size, it is no more a fixed-buffer of 500 bytes. | |||||
* | Issue #10778: decoding_fgets() decodes the filename from the filesystem | Victor Stinner | 2010-12-27 | 1 | -6/+11 | |
| | | | | encoding instead of UTF-8. | |||||
* | Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file | Victor Stinner | 2010-10-14 | 1 | -6/+9 | |
| | | | | descriptor. | |||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -1384/+1384 | |
| | | | | | | | | | | 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. ........ |