| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Thanks @gwosti for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-157828 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
Sorry, @gwosti and @pablogsal, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker c1df6843d36233ec1da71a1d5f9b74dd6ebc9b97 3.13 |
Sorry, something went wrong.
|
GH-157829 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-157828 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-157829 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-157830 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…57830) [3.13] gh-155525: Cover quadratic f-string tokenization regression (GH-156756) * gh-155525: Avoid quadratic f-string tokenization * fixup! gh-155525: Avoid quadratic f-string tokenization --------- (cherry picked from commit c1df684) Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
…57829) * [ 3.14 ] gh-155525: Avoid quadratic f-string tokenization Adapt the original expression-span fix to the release tokenizer and retain interactive buffers while a formatted string is open. Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com> * gh-155525: Cover quadratic f-string tokenization regression (GH-156756) * gh-155525: Avoid quadratic f-string tokenization * fixup! gh-155525: Avoid quadratic f-string tokenization --------- (cherry picked from commit c1df684) Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> --------- Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
…57828) * [ 3.15 ] gh-155525: Avoid quadratic f-string tokenization Adapt the original expression-span fix to the release tokenizer and retain interactive buffers while a formatted string is open. Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com> * gh-155525: Cover quadratic f-string tokenization regression (GH-156756) * gh-155525: Avoid quadratic f-string tokenization * fixup! gh-155525: Avoid quadratic f-string tokenization --------- (cherry picked from commit c1df684) Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> --------- Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Windows11 Non-Debug 3.13 (tier-1) has failed when building commit 3dcc324. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1419/builds/1334 Failed tests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "b:\uildarea\3.13.ware-win11.nondebug\build\Lib\test\test_int.py", line 729, in test_denial_of_service_prevented_str_to_int
self.assertLessEqual(sw_fail_huge.seconds, sw_convert.seconds/2)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0.015625 not less than or equal to 0.0078125
Traceback (most recent call last):
File "b:\uildarea\3.13.ware-win11.nondebug\build\Lib\test\test_int.py", line 740, in test_denial_of_service_prevented_str_to_int
self.assertLessEqual(sw_fail_extra_huge.seconds, sw_convert.seconds/2)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0.015625 not less than or equal to 0.0078125
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add regression coverage for modules containing many f-string or t-string replacement fields, expression text after tokenizer buffer growth, and != followed by a format specifier.
The tokenizer refactor in gh-156484 already removed the quadratic copying on main. This PR now retains that implementation and adds the original regression tests. The release-branch backports also need the original expression-span fix, adapted to their older tokenizer layout.
Closes gh-155525.