8000 gh-132661: Implement PEP 750 by lysnikolaou · Pull Request #132662 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132661: Implement PEP 750 #132662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 104 commits into from
Apr 30, 2025
Merged
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
9248287
Implement next version of PEP 750
lysnikolaou Oct 1, 2024
450d771
First fixes; conv and format_spec still not working
lysnikolaou Oct 18, 2024
a095a9b
Change BUILD_INTERPOLATION opcode to simplify
lysnikolaou Oct 18, 2024
499d70c
Add templatelib module & clean-up types/objects etc.
lysnikolaou Oct 20, 2024
f742d45
Support explicit concatenation of template and str
lysnikolaou Oct 21, 2024
0dda3f9
Avoid folding one node template into its content
lysnikolaou Oct 22, 2024
17014e7
Implement __eq__ for template and interpolation
lysnikolaou Oct 23, 2024
94371bd
Fix debug specifier segfault
lysnikolaou Oct 23, 2024
99184cc
Add __match_args__ to Interpolation
lysnikolaou Oct 23, 2024
4e89c87
Fix syntax error prefix in t-strings
lysnikolaou Oct 23, 2024
6bfb095
Fix test_dis
lysnikolaou Oct 23, 2024
560e957
Fix test_fstring
lysnikolaou Oct 23, 2024
4d172c2
Fix test_embed
lysnikolaou Oct 23, 2024
c9362e3
Implement interleaving, hash functions and *args __init__
lysnikolaou Oct 23, 2024
d2bd673
Use Argument Clinic for interpolation_new
lysnikolaou Oct 25, 2024
7ae1b60
Revert to using different grammar rules for tstring due to format_spec
lysnikolaou Oct 25, 2024
5e7304f
Fix code generation for when there's many values in tstring
lysnikolaou Oct 25, 2024
c8f22f0
Remove duplicate parens from template repr
lysnikolaou Oct 25, 2024
b0dbe27
Fix conversion converter for interpolation __new__
lysnikolaou Oct 25, 2024
b07c419
Merge branch 'main' into tstrings
lysnikolaou Oct 27, 2024
3e84771
Fix test_embed and test_dis -- again
lysnikolaou Nov 1, 2024
9380ab9
Implement implicit concatenation with TemplateStr
lysnikolaou Nov 1, 2024
22f9dc6
Merge branch 'main' into tstrings
lysnikolaou Feb 20, 2025
f207637
Implement new specification of template type
lysnikolaou Feb 20, 2025
29b1386
Replace nb_add with sq_concat
lysnikolaou Feb 20, 2025
aad5d67
Correctly implement str + tstring
lysnikolaou Feb 21, 2025
77822be
Make changes requested by Steering Council (#57)
Wingysam Apr 9, 2025
f3ba0fe
Merge branch 'main' into tstrings
lysnikolaou Apr 9, 2025
422a515
Remove unnecessary _Py_TPFLAGS_MATCH_SELF from Template type (#60)
koxudaxi Apr 9, 2025
bb7359a
Fix memory leak in template concat error handling (#59)
koxudaxi Apr 9, 2025
6a7b448
PEP 750 bug and spec fix (#58)
davepeck Apr 9, 2025
e6d01ef
Fix for segv in `_PyInterpolation_FromStackRefSteal` (#61)
davepeck Apr 10, 2025
0801f17
More minor fixes after merge with main
lysnikolaou Apr 10, 2025
a51e954
Fix JIT build
lysnikolaou Apr 10, 2025
76816a1
Fix Windows build
lysnikolaou Apr 10, 2025
2c53f55
Remove smelly _conversion_converter symbol
lysnikolaou Apr 10, 2025
fa4b531
Fix check-c-globals
lysnikolaou Apr 10, 2025
98e5d83
Fix various stuff in the VM
lysnikolaou Apr 11, 2025
a7c57fe
Add tests
lysnikolaou Apr 11, 2025
d6c470c
Fix Windows build (#64)
AA-Turner Apr 11, 2025
101abe3
Merge branch 'main' into tstrings
lysnikolaou Apr 11, 2025
7573346
Fix lint
lysnikolaou Apr 11, 2025
4f91ea3
Skip test_tstring.py from ruff
lysnikolaou Apr 11, 2025
14d9fa4
Fix parser bug and implement ast_unparse in Python
lysnikolaou Apr 11, 2025
bf89325
Modify CODEOWNERS
lysnikolaou Apr 11, 2025
b7edcd6
Do not use _PyAST_ExprAsUnicode (unparse) for interpolation expression
lysnikolaou Apr 11, 2025
99c3bf4
Remove interpolation_compare() and interpolation_hash() (#65)
davepeck Apr 17, 2025
f09d99f
Add type check macros (#67)
AA-Turner Apr 17, 2025
878eb69
t-strings: cosmetics (#66)
AA-Turner Apr 17, 2025
7ed73fa
Implement GC protocol for template and interpolation types
lysnikolaou Apr 17, 2025
e88d111
Fix test_unparse again!
lysnikolaou Apr 17, 2025
92fd148
Remove unnecessary tp_flag from interpolation type
lysnikolaou Apr 17, 2025
c833f6d
Merge branch 'main' into tstrings
lysnikolaou Apr 17, 2025
8f8a414
Minor fixes (mostly cosmetic)
lysnikolaou Apr 17, 2025
6bfc888
Add test for interleaving
lysnikolaou Apr 17, 2025
0ee90f9
Merge branch 'main' into tstrings
terryjreedy Apr 18, 2025
e6da757
t-strings: Add more syntax tests (#68)
AA-Turner Apr 18, 2025
58b7e5c
Move string.templatelib specific tests to test_string/test_templatlib…
AA-Turner Apr 19, 2025
4c6cb47
Add more concatenation tests (#71)
AA-Turner Apr 19, 2025
5782897
t-strings: Reduce undefined behaviour and general improvements (#72)
AA-Turner Apr 19, 2025
fb68d60
Add ``assertTStringEqual()`` helper (#73)
AA-Turner Apr 21, 2025
174b045
Add a what's new entry (#69)
pauleveritt Apr 21, 2025
62ace68
Fix repr
lysnikolaou Apr 21, 2025
4f6c5df
Fix syntax errors 8000 in grammar
lysnikolaou Apr 21, 2025
e84778a
Rename f helper to fstring
lysnikolaou Apr 21, 2025
8b24ff3
Use Py_BuildValue and add error checking for _PyType_GetDict
lysnikolaou Apr 21, 2025
23444df
Return a strong ref from _PyInterpolation_GetValue
lysnikolaou Apr 21, 2025
19aad93
Remove unnecessary function for template concatenation
lysnikolaou Apr 21, 2025
adbc109
Formatting
lysnikolaou Apr 21, 2025
a5e3bde
Add versionadded directive to TSTRING_START docs
lysnikolaou Apr 21, 2025
c8a9482
Add TOK_GET_STRING_PREFIX macro and change tstring field to enum
lysnikolaou Apr 21, 2025
4e32db6
Merge branch 'main' into tstrings
lysnikolaou Apr 21, 2025
a78c082
Minor fixes to lexer and Makefile
lysnikolaou Apr 21, 2025
173e456
Rename fields in tokenizer mode to not be f-string specific
lysnikolaou Apr 21, 2025
a595ccc
Nit: return result instead of -1
lysnikolaou Apr 22, 2025
2282ccc
Move AST test to test_ast
lysnikolaou Apr 22, 2025
53fc995
Fix unparsing implicit concat of t-strings with f-strings
lysnikolaou Apr 22, 2025
58da4e0
Update CODEOWNERS
lysnikolaou Apr 22, 2025
3e10c49
Clean up test_tstring
lysnikolaou Apr 22, 2025
2addef7
Add new tokens TSTRING_MIDDLE & TSTRING_END
lysnikolaou Apr 22, 2025
550fd07
Merge branch 'main' into tstrings
lysnikolaou Apr 22, 2025
06c15de
Make Interpolation.conversion an int and change bytecode def
lysnikolaou Apr 22, 2025
f57647e
Fix ast_unparse and token generator
lysnikolaou Apr 22, 2025
a21391a
Let compiler build template tuples
lysnikolaou Apr 22, 2025
1dca604
Add tp_clear slot and remove UB casts
lysnikolaou Apr 22, 2025
011ca83
Apply Hugo's suggestions from code review
lysnikolaou Apr 22, 2025
1379756
Add empty line to CODEOWNERS
lysnikolaou Apr 22, 2025
4d1f2a5
Add news blurb
lysnikolaou Apr 22, 2025
8842739
t-strings: Various changes (#74)
AA-Turner Apr 23, 2025
cf56234
Merge branch 'main' into tstrings
lysnikolaou Apr 23, 2025
280e90e
Merge branch 'main' into tstrings
AA-Turner Apr 23, 2025
051e8eb
Add pickle support for tstrings (#75)
sobolevn Apr 23, 2025
aa7c603
Merge branch 'main' into tstrings
lysnikolaou Apr 23, 2025
ce78496
Address feedback; fix template_values_get and conversion
lysnikolaou Apr 23, 2025
8468e10
Merge branch 'main' into tstrings
lysnikolaou Apr 24, 2025
9cee9ff
Merge branch 'main' into tstrings
lysnikolaou Apr 25, 2025
0303c25
Add snippets to Lib/test/test_ast/snippets.py
lysnikolaou Apr 25, 2025
6edaba0
Merge branch 'main' into tstrings
sobolevn Apr 28, 2025
ab9026f
Remove _templatelib extension
lysnikolaou Apr 29, 2025
48f771b
Change __reduce__ flags to METH_NOARGS
lysnikolaou Apr 29, 2025
0b1aef9
Merge branch 'main' into tstrings
lysnikolaou Apr 29, 2025
8b0c132
Fix docs for TSTRING_MIDDLE
lysnikolaou Apr 30, 2025
b35ba13
Merge branch 'main' into tstrings
lysnikolaou Apr 30, 2025
44749c7
Fix ERROR_IF
lysnikolaou Apr 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into tstrings
  • Loading branch information
lysnikolaou committed Apr 24, 2025
commit 8468e1036ba7b686d3f8017385b4549ddf3cd0f1

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.

0