-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Description
- Changes in the C tokenizerCategorize failing testsFix failing tests or modify/remove them as neededChanges in Python tokenizerTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Linked PRs
- gh-102856: Initial implementation of PEP 701 #102855
- gh-102856: Skip test_mismatched_parens in WASI builds #103633
- gh-102856: Clean some of the PEP 701 tokenizer implementation #103634
- gh-102856: Allow comments inside multi-line f-string expresions #104006
- gh-102856: Python tokenizer implementation for PEP 701 #104323
- gh-102856: Tokenize performance improvement #104731
- gh-102856: Add changes related to PEP 701 in 3.12 What's New docs #104824
- [3.12] gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (GH-104824) #104847
- gh-102856: Add missing quote to fix doctest #104852
- [3.12] gh-102856: Add missing quote to fix doctest (GH-104852) #104854
- gh-102856: Update "Formatted string literals" docs section after PEP701 #104861
- [3.12] gh-102856: Update "Formatted string literals" docs section after PEP701 (GH-104861) #104865
kuwvAlexWaygood, isidentical, lysnikolaou, Eclips4, arhadthedev and 5 more
Activity
pablogsal commentedon Mar 20, 2023
CC: @lysnikolaou @isidentical @mgmacias95
pablogsal commentedon Mar 20, 2023
See this for the latest report on errors from @isidentical
pablogsal commentedon Mar 20, 2023
Draft PR for the C tokenizer up: #102855
pablogsal commentedon Mar 20, 2023
Things for the cleanup of #102855:
tok_get_fstring_mode
because is a monster.pablogsal commentedon Mar 20, 2023
Ok with #102855 we have the following failing tests:
Most of these are updating error messages, line numbers and other stuff but some may have actual bugs so we should check them. Please, mention which ones are you working on so we don't clash with one another.
mgmacias95 commentedon Mar 20, 2023
Working on
test_tokenize
Eclips4 commentedon Mar 21, 2023
Hello, Pablo!
Can I get work on
test_ast
?Recently I sent some PR's about this file (for example, #102797). So, I have some experience in that =)
ramvikrams commentedon Mar 21, 2023
I can work with
test_type_comments
andtest_unparse
.pablogsal commentedon Mar 21, 2023
@Eclips4 @ramvikrams wonderful! Just make PRs against my fork!
Report here or ping any of us if you find something that could be a bug (don't just fix the tests blindly because there may be bugs lurking).
pablogsal commentedon Mar 21, 2023
@lysnikolaou can you work on cleaning up the grammar + the actions?
@isidentical can you work on cleaning up some of the tokenizer layers? (This is quite a lot so we can probably work together here).
Eclips4 commentedon Mar 21, 2023
@pablogsal
About
test_ast.py
Seems thats like there only a one test will be failed, and how I undestand, that's a bug:
cpython/Lib/test/test_ast.py
Lines 779 to 780 in 7f760c2
I think, there's two solutions:
tokenizer.c
instead ofstring_parser.c
, so as I understand, we should changepython_gram
, is it right? ( We need access tofeature_version
, which in tokenizer inaccessible )pablogsal commentedon Mar 21, 2023
Probably we can do this but on the other hand I would prefer to not overcomplicate this so I think (1) is better
lysnikolaou commentedon Mar 21, 2023
Will do!
Eclips4 commentedon Mar 21, 2023
Also, I can take a look at
test_cmd_line_script
. Seems easy.73 remaining items
[3.12] gh-102856: Add missing quote to fix doctest (GH-104852) (#104854)
pythongh-102856: Update Formatted string literals docs section after …
pythongh-102856: Update "Formatted string literals" docs section afte…
gh-102856: Update "Formatted string literals" docs section after PEP7…
pythongh-102856: Update "Formatted string literals" docs section afte…
[3.12] gh-102856: Update "Formatted string literals" docs section aft…
flying-sheep commentedon Oct 2, 2023
Ah great! I didn't know someone would continue PEP 536. Happy that it's happening!
Shouldn't PEP 536 be mentioned in this one?
pablogsal commentedon Oct 3, 2023
It's mentioned in the PEP:
https://peps.python.org/pep-0701/
Btw as heads up: We don't monitor normally closed issues so is very likely that people won't answer to comments when the issue is closed :)
flying-sheep commentedon Oct 3, 2023
Thanks! Seems like I missed the mention then. Perfect!