| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
`Element.findtext()`
There was a problem hiding this comment.
All the occurrences you change are of the form (get borrowed) followed by (incref) right? if so, it is ok to change it to (get strong ref) but otherwise we may have un-necessary incref/decref. Currently XML is not FT-safe but if we (I) want to make it so, we should avoid incref/decref in hot paths
Sorry, something went wrong.
The number of incerfs/decrefs remains the same. They are not unnecessary. |
Sorry, something went wrong.
|
Yeah I was not sure about this as I am on mobile. Thanks for checking |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. 👍
Sorry, something went wrong.
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
|
Sorry, @StanFromIreland, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 0469e6d38dcb3ff904690028cb3a25155bdcedae 3.13 |
Sorry, something went wrong.
|
GH-148916 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
Thanks for the reviews! |
Sorry, something went wrong.
|
GH-148923 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
) (cherry picked from commit 0469e6d) Co-authored-by: Stan Ulbrych <stan@python.org>
) (cherry picked from commit 0469e6d)
| Back | FazBrowse Home | New Git URL |
This was a regression introduced by c57623c.
cpython/Modules/_elementtree.c
Line 575 in ae55e9c