| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
Sorry, @sobolevn, I could not cleanly backport this to 3.14 due to a conflict. cherry_picker 46afba7b9324bc9492c3527d0fe47dd74f1f598c 3.14 |
Sorry, something went wrong.
|
GH-149911 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-149912 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
@sobolevn @kumaraditya303 The same issue was addressed in #132590, which takes a different approach. Using Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST we can unify the tuple and list cases and improve performance. It also adds a FT test. Could you have a look at that PR please? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
_PyBytes_FromList is called from PyBytes_FromObject which does not own the passed object, so it is a borrowed reference.
Using _PyList_GetItemRef seems like the correct solution here.
However, I was not successful in actually triggering the failure without C-API direct usage.