Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-106396: Special-case empty format spec to gen empty JoinedStr node (#106401) | Lysandros Nikolaou | 2023-07-04 | 1 | -0/+12 |
| | |||||
* | gh-106320: Remove private _PyUnicode codecs C API functions (#106385) | Victor Stinner | 2023-07-04 | 1 | -0/+1 |
| | | | | | Remove private _PyUnicode codecs C API functions: move them to the internal C API (pycore_unicodeobject.h). No longer export most of these functions. | ||||
* | gh-106320: Remove private _PyErr C API functions (#106356) | Victor Stinner | 2023-07-03 | 1 | -0/+1 |
| | | | | Remove private _PyErr C API functions: move them to the internal C API (pycore_pyerrors.h). | ||||
* | gh-104922: remove PY_SSIZE_T_CLEAN (#106315) | Inada Naoki | 2023-07-02 | 2 | -2/+0 |
| | |||||
* | gh-106145: Make `end_{lineno,col_offset}` required on `type_param` nodes ↵ | Nikita Sobolev | 2023-06-30 | 1 | -1/+1 |
| | | | | (#106224) | ||||
* | gh-106023: Update code using _PyObject_FastCall() (#106257) | Victor Stinner | 2023-06-30 | 1 | -2/+2 |
| | | | Replace _PyObject_FastCall() calls with PyObject_Vectorcall(). | ||||
* | gh-98931: Add custom error messages to invalid import/from with multiple ↵ | Pablo Galindo Salgado | 2023-06-22 | 1 | -596/+719 |
| | | | | | | targets (#105985) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-105938: Emit a SyntaxWarning for escaped braces in an f-string (#105939) | Lysandros Nikolaou | 2023-06-20 | 2 | -4/+9 |
| | |||||
* | GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589) | Brandt Bucher | 2023-06-15 | 1 | -0/+1 |
| | |||||
* | gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (#105828) | Lysandros Nikolaou | 2023-06-15 | 1 | -3/+8 |
| | |||||
* | gh-105800: Issue SyntaxWarning in f-strings for invalid escape sequences ↵ | Pablo Galindo Salgado | 2023-06-15 | 1 | -3/+3 |
| | | | | (#105801) | ||||
* | gh-105718: Fix buffer allocation in tokenizer with readline (#105728) | Lysandros Nikolaou | 2023-06-13 | 2 | -5/+1 |
| | |||||
* | gh-105549: Tokenize separately NUMBER and NAME tokens and allow 0-prefixed ↵ | Pablo Galindo Salgado | 2023-06-09 | 1 | -3/+10 |
| | | | | literals (#105555) | ||||
* | gh-105259: Ensure we don't show newline characters for trailing NEWLINE ↵ | Pablo Galindo Salgado | 2023-06-06 | 2 | -0/+8 |
| | | | | tokens (#105364) | ||||
* | gh-105194: Fix format specifier escaped characters in f-strings (#105231) | Pablo Galindo Salgado | 2023-06-02 | 3 | -1/+21 |
| | |||||
* | gh-104799: Default missing lists in AST to the empty list (#104834) | Jelle Zijlstra | 2023-06-02 | 1 | -20/+29 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-92536: Remove PyUnicode_READY() calls (#105210) | Victor Stinner | 2023-06-01 | 1 | -6/+0 |
| | | | | Since Python 3.12, PyUnicode_READY() does nothing and always returns 0. | ||||
* | gh-105042: Disable unmatched parens syntax error in python tokenize (#105061) | Lysandros Nikolaou | 2023-05-30 | 1 | -32/+33 |
| | |||||
* | gh-105069: Add a readline-like callable to the tokenizer to consume input ↵ | Pablo Galindo Salgado | 2023-05-30 | 2 | -3/+135 |
| | | | | iteratively (#105070) | ||||
* | gh-105017: Include CRLF lines in strings and column numbers (#105030) | Marta Gómez Macías | 2023-05-28 | 3 | -16/+30 |
| | | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | gh-105017: Fix including additional NL token when using CRLF (#105022) | Marta Gómez Macías | 2023-05-27 | 1 | -1/+1 |
| | | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> | ||||
* | Fix indentation in Parser/tokenizer.c (#105012) | Petr Vaněk | 2023-05-27 | 1 | -1/+1 |
| | |||||
* | gh-104799: Move location of type_params AST fields (#104828) | Jelle Zijlstra | 2023-05-26 | 3 | -20/+24 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | Fix typo in the tokenizer (#104950) | Stepfen Shawn | 2023-05-26 | 1 | -1/+1 |
| | |||||
* | gh-104866: Tokenize should emit NEWLINE after exiting block with comment ↵ | Lysandros Nikolaou | 2023-05-24 | 1 | -3/+6 |
| | | | | (#104870) | ||||
* | GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674) | Brandt Bucher | 2023-05-22 | 1 | -7/+25 |
| | |||||
* | gh-102856: Allow comments inside multi-line f-string expresions (#104006) | Cristián Maureira-Fredes | 2023-05-22 | 1 | -4/+0 |
| | |||||
* | gh-104656: Rename typeparams AST node to type_params (#104657) | Jelle Zijlstra | 2023-05-22 | 3 | -26/+26 |
| | |||||
* | gh-98836: Extend PyUnicode_FromFormat() (GH-98838) | Serhiy Storchaka | 2023-05-21 | 1 | -8/+3 |
| | | | | | | | | | * Support for conversion specifiers o (octal) and X (uppercase hexadecimal). * Support for length modifiers j (intmax_t) and t (ptrdiff_t). * Length modifiers are now applied to all integer conversions. * Support for wchar_t C strings (%ls and %lV). * Support for variable width and precision (*). * Support for flag - (left alignment). | ||||
* | gh-102856: Python tokenizer implementation for PEP 701 (#104323) | Marta Gómez Macías | 2023-05-21 | 5 | -8/+65 |
| | | | | | | | | | | | This commit replaces the Python implementation of the tokenize module with an implementation that reuses the real C tokenizer via a private extension module. The tokenize module now implements a compatibility layer that transforms tokens from the C tokenizer into Python tokenize tokens for backward compatibility. As the C tokenizer does not emit some tokens that the Python tokenizer provides (such as comments and non-semantic newlines), a new special mode has been added to the C tokenizer mode that currently is only used via the extension module that exposes it to the Python layer. This new mode forces the C tokenizer to emit these new extra tokens and add the appropriate metadata that is needed to match the old Python implementation. Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | gh-104658: Fix location of unclosed quote error for multiline f-strings ↵ | Pablo Galindo Salgado | 2023-05-20 | 2 | -2/+6 |
| | | | | (#104660) | ||||
* | gh-103763: Implement PEP 695 (#103764) | Jelle Zijlstra | 2023-05-16 | 3 | -1964/+2573 |
| | | | | | | | | | | | | | | This implements PEP 695, Type Parameter Syntax. It adds support for: - Generic functions (def func[T](): ...) - Generic classes (class X[T](): ...) - Type aliases (type X = ...) - New scoping when the new syntax is used within a class body - Compiler and interpreter changes to support the new syntax and scoping rules Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com> Co-authored-by: Larry Hastings <larry@hastings.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | Trim trailing whitespace and test on CI (#104275) | Hugo van Kemenade | 2023-05-08 | 1 | -1/+1 |
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) | Eric Snow | 2023-05-05 | 1 | -0/+1 |
| | | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204). | ||||
* | gh-104169: Ensure the tokenizer doesn't overwrite previous errors (#104170) | Pablo Galindo Salgado | 2023-05-04 | 1 | -0/+6 |
| | |||||
* | gh-97556: Raise null bytes syntax error upon null in multiline string ↵ | Lysandros Nikolaou | 2023-05-04 | 1 | -1/+8 |
| | | | | (GH-104136) | ||||
* | gh-104016: Fixed off by 1 error in f string tokenizer (#104047) | jx124 | 2023-05-01 | 2 | -5/+9 |
| | | | | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Ken Jin <kenjin@python.org> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | gh-103824: fix use-after-free error in Parser/tokenizer.c (#103993) | chgnrdv | 2023-05-01 | 1 | -0/+4 |
| | |||||
* | gh-103656: Transfer f-string buffers to parser to avoid use-after-free ↵ | Lysandros Nikolaou | 2023-04-27 | 7 | -60/+127 |
| | | | | | (GH-103896) Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | gh-103718: Correctly set f-string buffers in all cases (GH-103815) | Lysandros Nikolaou | 2023-04-25 | 1 | -8/+6 |
| | | | | | | Turns out we always need to remember/restore fstring buffers in all of the stack of tokenizer modes, cause they might change to `TOK_REGULAR_MODE` and have newlines inside the braces (which is when we need to reallocate the buffer and restore the fstring ones). | ||||
* | GH-103727: Avoid advancing tokenizer too far in f-string mode (GH-103775) | Lysandros Nikolaou | 2023-04-24 | 1 | -8/+10 |
| | |||||
* | GH-103718: Correctly cache and restore f-string buffers when needed (GH-103719) | Lysandros Nikolaou | 2023-04-23 | 2 | -11/+30 |
| | |||||
* | gh-102310: Change error range for invalid bytes literals (#103663) | Nikita Sobolev | 2023-04-23 | 1 | -1/+2 |
| | |||||
* | gh-102856: Clean some of the PEP 701 tokenizer implementation (#103634) | Pablo Galindo Salgado | 2023-04-19 | 2 | -74/+67 |
| | |||||
* | gh-102856: Initial implementation of PEP 701 (#102855) | Pablo Galindo Salgado | 2023-04-19 | 10 | -3630/+5666 |
| | | | | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> | ||||
* | GH-102711: Fix warnings found by clang (#102712) | Chenxi Mao | 2023-03-28 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | There are some warnings if build python via clang: Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] _PyPegen_clear_memo_statistics() ^ void Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] _PyPegen_get_memo_statistics() ^ void Fix it to make clang happy. Signed-off-by: Chenxi Mao <chenxi.mao@suse.com> | ||||
* | gh-102255: Improve build support for Windows API partitions (GH-102256) | Max Bachmann | 2023-03-09 | 1 | -3/+5 |
| | | | | | Add `MS_WINDOWS_DESKTOP`, `MS_WINDOWS_APPS`, `MS_WINDOWS_SYSTEM` and `MS_WINDOWS_GAMES` preprocessor definitions to allow switching off functionality missing from particular API partitions ("partitions" are used in Windows to identify overlapping subsets of APIs). CPython only officially supports `MS_WINDOWS_DESKTOP` and `MS_WINDOWS_SYSTEM` (APPS is included by normal desktop builds, but APPS without DESKTOP is not covered). Other configurations are a convenience for people building their own runtimes. `MS_WINDOWS_GAMES` is for the Xbox subset of the Windows API, which is also available on client OS, but is restricted compared to `MS_WINDOWS_DESKTOP`. These restrictions may change over time, as they relate to the build headers rather than the OS support, and so we assume that Xbox builds will use the latest available version of the GDK. | ||||
* | gh-102416: Do not memoize incorrectly loop rules in the parser (#102467) | Pablo Galindo Salgado | 2023-03-06 | 1 | -216/+0 |
| | |||||
* | gh-100227: Move _str_replace_inf to PyInterpreterState (gh-102333) | Eric Snow | 2023-02-28 | 1 | -3/+1 |
| | | | https://github.com/python/cpython/issues/100227 | ||||
* | Fix some typos in asdl_c.py (GH-101757) | abel1502 | 2023-02-10 | 1 | -2/+2 |
| |