Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-110309: Prune empty constant in format specs (#110320) | sunmy2019 | 2023-10-05 | 1 | -0/+48 |
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-109114: Relax the check for invalid lambdas inside f-strings to avoid ↵ | Pablo Galindo Salgado | 2023-09-08 | 1 | -0/+4 |
| | | | | false positives (#109121) | ||||
* | gh-107967: Fix infinite recursion on invalid escape sequence warning (#107968) | Lysandros Nikolaou | 2023-08-15 | 1 | -0/+10 |
| | |||||
* | gh-106396: Special-case empty format spec to gen empty JoinedStr node (#106401) | Lysandros Nikolaou | 2023-07-04 | 1 | -0/+18 |
| | |||||
* | gh-105915: Fix SyntaxWarning becoming a SyntaxError with -We in test_fstring ↵ | Lysandros Nikolaou | 2023-06-20 | 1 | -3/+3 |
| | | | | (#105943) | ||||
* | gh-105915: Add 'r' prefix to not emit SyntaxWarning in test_fstring (#105940) | Lysandros Nikolaou | 2023-06-20 | 1 | -1/+1 |
| | | | Co-authored-by: @sunmy2019 | ||||
* | gh-105938: Emit a SyntaxWarning for escaped braces in an f-string (#105939) | Lysandros Nikolaou | 2023-06-20 | 1 | -2/+9 |
| | |||||
* | gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (#105828) | Lysandros Nikolaou | 2023-06-15 | 1 | -1/+14 |
| | |||||
* | gh-105800: Issue SyntaxWarning in f-strings for invalid escape sequences ↵ | Pablo Galindo Salgado | 2023-06-15 | 1 | -0/+3 |
| | | | | (#105801) | ||||
* | gh-105194: Fix format specifier escaped characters in f-strings (#105231) | Pablo Galindo Salgado | 2023-06-02 | 1 | -0/+10 |
| | |||||
* | gh-102856: Allow comments inside multi-line f-string expresions (#104006) | Cristián Maureira-Fredes | 2023-05-22 | 1 | -3/+38 |
| | |||||
* | gh-104658: Fix location of unclosed quote error for multiline f-strings ↵ | Pablo Galindo Salgado | 2023-05-20 | 1 | -1/+15 |
| | | | | (#104660) | ||||
* | gh-104089: catch DeprecationWarning in `test_fstring` (#104137) | sunmy2019 | 2023-05-04 | 1 | -5/+12 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-104016: Skip test for deeply neste f-strings on wasi (#104071) | Pablo Galindo Salgado | 2023-05-01 | 1 | -3/+4 |
| | |||||
* | gh-104016: Fixed off by 1 error in f string tokenizer (#104047) | jx124 | 2023-05-01 | 1 | -0/+16 |
| | | | | | | 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-103656: Transfer f-string buffers to parser to avoid use-after-free ↵ | Lysandros Nikolaou | 2023-04-27 | 1 | -0/+14 |
| | | | | | (GH-103896) Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | GH-103727: Avoid advancing tokenizer too far in f-string mode (GH-103775) | Lysandros Nikolaou | 2023-04-24 | 1 | -6/+4 |
| | |||||
* | GH-103718: Correctly cache and restore f-string buffers when needed (GH-103719) | Lysandros Nikolaou | 2023-04-23 | 1 | -0/+5 |
| | |||||
* | gh-102856: Skip test_mismatched_parens in WASI builds (#103633) | Pablo Galindo Salgado | 2023-04-19 | 1 | -0/+2 |
| | |||||
* | gh-102856: Initial implementation of PEP 701 (#102855) | Pablo Galindo Salgado | 2023-04-19 | 1 | -74/+237 |
| | | | | | | 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> | ||||
* | Fix typo in test_fstring.py (#101823) | mjoerg | 2023-02-11 | 1 | -1/+1 |
| | |||||
* | Fix typo in `test_fstring.py` (#101600) | Ikko Eltociear Ashimine | 2023-02-09 | 1 | -1/+1 |
| | |||||
* | gh-98401: Invalid escape sequences emits SyntaxWarning (#99011) | Victor Stinner | 2022-11-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+\.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence), use raw strings for regular expression: re.compile(r"\d+\.\d+"). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. Octal escapes with value larger than 0o377 (ex: "\477"), deprecated in Python 3.11, now produce a SyntaxWarning, instead of DeprecationWarning. In a future Python version they will be eventually a SyntaxError. codecs.escape_decode() and codecs.unicode_escape_decode() are left unchanged: they still emit DeprecationWarning. * The parser only emits SyntaxWarning for Python 3.12 (feature version), and still emits DeprecationWarning on older Python versions. * Fix SyntaxWarning by using raw strings in Tools/c-analyzer/ and wasm_build.py. | ||||
* | gh-94869: Fix the location in some expressions for multi-line f-string ast ↵ | Pablo Galindo Salgado | 2022-07-16 | 1 | -2/+31 |
| | | | | nodes (#94895) | ||||
* | gh-93418: Fix an assert when an f-string expression is followed by an '=', ↵ | Eric V. Smith | 2022-06-01 | 1 | -0/+1 |
| | | | | but no closing brace. (gh-93419) | ||||
* | gh-93283: Improve error message for f-string with invalid conversion ↵ | Serhiy Storchaka | 2022-05-31 | 1 | -11/+22 |
| | | | | character (GH-93349) | ||||
* | bpo-47129: Add more informative messages to f-string syntax errors (32127) | Maciej Górski | 2022-03-28 | 1 | -11/+29 |
| | | | | | | | | | | | | | * Add more informative messages to f-string syntax errors * 📜🤖 Added by blurb_it. * Fix whitespaces * Change error message * Remove the 'else' statement (as sugested in review) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | bpo-46762: Fix an assert failure in f-strings where > or < is the last ↵ | Eric V. Smith | 2022-02-16 | 1 | -0/+2 |
| | | | | character if the f-string is missing a trailing right brace. (#31365) | ||||
* | bpo-46503: Prevent an assert from firing when parsing some invalid \N ↵ | Eric V. Smith | 2022-01-25 | 1 | -0/+4 |
| | | | | | | | sequences in f-strings. (GH-30865) * bpo-46503: Prevent an assert from firing. Also fix one nearby tiny PEP-7 nit. * Added blurb. | ||||
* | bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if ↵ | Pablo Galindo Salgado | 2021-11-24 | 1 | -1/+1 |
| | | | | inside parentheses (GH-29757) | ||||
* | bpo-44885: Correct the ast locations of f-strings with format specs and ↵ | Pablo Galindo Salgado | 2021-08-12 | 1 | -11/+29 |
| | | | | repeated expressions (GH-27729) | ||||
* | bpo-43797: Improve syntax error for invalid comparisons (#25317) | Pablo Galindo | 2021-04-12 | 1 | -3/+3 |
| | | | | | | | | | | | | | * bpo-43797: Improve syntax error for invalid comparisons * Update Lib/test/test_fstring.py Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> * Apply review comments * can't -> cannot Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | ||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171) | Inada Naoki | 2021-04-04 | 1 | -1/+1 |
| | | | | | | | | | | | * Fix test_float * Fix _osx_support * Fix test_fstring * Fix test_gc * Fix test_gzip * Fix test_hashlib * Fix unrelated whitespace issue Co-authored-by: Ned Deily <nad@python.org> | ||||
* | bpo-41064: Improve syntax error for invalid usage of '**' in f-strings ↵ | Pablo Galindo | 2021-03-24 | 1 | -0/+9 |
| | | | | (GH-25006) | ||||
* | bpo-42986: Fix parser crash when reporting syntax errors in f-string with ↵ | Pablo Galindo | 2021-01-31 | 1 | -0/+3 |
| | | | | newlines (GH-24279) | ||||
* | bpo-40176: Improve error messages for unclosed string literals (GH-19346) | Batuhan Taskaya | 2021-01-20 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: GH:isidentical | ||||
* | bpo-42806: Fix ast locations of f-strings inside parentheses (GH-24067) | Pablo Galindo | 2021-01-03 | 1 | -0/+53 |
| | |||||
* | Fixed mistake in test for f-string error description (GH-22036) (GH-22059) | han-solo | 2020-09-02 | 1 | -1/+1 |
| | |||||
* | bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` ↵ | han-solo | 2020-09-01 | 1 | -0/+20 |
| | | | | | | | in format specifier (GH-22036) * Fixed `f-string/str.format` error description when using two `,` in format specifier. Co-authored-by: millefalcon <hanish0019@hmail.com> | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21315) | Hai Shi | 2020-07-06 | 1 | -1/+1 |
| | |||||
* | bpo-41084: Adjust message when an f-string expression causes a SyntaxError ↵ | Lysandros Nikolaou | 2020-06-26 | 1 | -3/+7 |
| | | | | | (GH-21084) Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`. | ||||
* | bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵ | Serhiy Storchaka | 2020-06-25 | 1 | -2/+3 |
| | | | | characters. (GH-21035) | ||||
* | bpo-40939: Remove the old parser (GH-20768) | Pablo Galindo | 2020-06-11 | 1 | -2/+1 |
| | | | This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation. | ||||
* | bpo-40904: Fix segfault in the new parser with f-string containing yield ↵ | Pablo Galindo | 2020-06-08 | 1 | -0/+2 |
| | | | | statements with no value (GH-20701) | ||||
* | bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399) | Lysandros Nikolaou | 2020-05-26 | 1 | -0/+13 |
| | | | | | | | | When a `SyntaxError` in the expression part of a fstring is found, the filename attribute of the `SyntaxError` is always `<fstring>`. With this commit, it gets changed to always have the name of the file the fstring resides in. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | ||||
* | bpo-40593: Improve syntax errors for invalid characters in source code. ↵ | Serhiy Storchaka | 2020-05-12 | 1 | -1/+1 |
| | | | | (GH-20033) | ||||
* | bpo-40246: Revert reporting of invalid string prefixes (GH-19888) | Lysandros Nikolaou | 2020-05-04 | 1 | -1/+1 |
| | | | | Due to backwards compatibility concerns regarding keywords immediately followed by a string without whitespace between them (like in `bg="#d00" if clear else"#fca"`) will fail to parse, commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 has to be reverted. | ||||
* | bpo-40443: Remove unused imports in tests (GH-19804) | Victor Stinner | 2020-04-30 | 1 | -2/+0 |
| | |||||
* | bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771) | Lysandros Nikolaou | 2020-04-29 | 1 | -2/+1 |
| | | | `JoinedStr`s and `FormattedValue also needs to be shifted, in order to correctly compute the location information of nested f-strings. | ||||
* | bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670) | Victor Stinner | 2020-04-23 | 1 | -1/+2 |
| | | | | | | | | | | | * Rename PyConfig.use_peg to _use_peg_parser * Document PyConfig._use_peg_parser and mark it a deprecated * Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated in the documentation. * Add use_old_parser() and skip_if_new_parser() to test.support * Remove sys.flags.use_peg: use_old_parser() uses _testinternalcapi.get_configs() instead. * Enhance test_embed tests * subprocess._args_from_interpreter_flags() copies -X oldparser |