bpo-33989: Ensure that ms.key_compare is always initialized in list_sort_impl()#8710
Conversation
| @@ -0,0 +1,2 @@ | |||
| Ensure that ``ms.key_compare`` is always initialized in :meth:`list.sort`. | |||
There was a problem hiding this comment.
This tells nothing to the end user. ms.key_compare is internal name in C sources.
Describe the issue how it can be visible to the end Python or C API user. For example: "Fixed possible crash in list.sort when sort objects with ob_type->tp_richcompare == NULL".
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
❗️ @ZackerySpytz Please address Serhiy's comments to help move this pull request along. Thank you! |
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @serhiy-storchaka: please review the changes made to this pull request. |
|
Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
…ort_impl(). (pythonGH-8710) (cherry picked from commit ebc793d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
GH-11970 is a backport of this pull request to the 3.7 branch. |
https://bugs.python.org/issue33989