You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bisect.insort crashes the interpreter if key is a string #92839
The following code will crash the interactive interpreter.
import bisect
x = []
y = {'a': 2 , "b" : 1 }
bisect.insort(x, y, key='b')
Error messages
None. Just dumped back to the command line from the interactive interpreter.
Your environment
CPython versions tested on:
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Operating system and architecture:
Edition Windows 10 Pro
Version 21H2
Installed on 7/28/2021
OS build 19044.1706
Experience Windows Feature Experience Pack 120.2212.4170.0
Activity
stevendaprano commentedon May 16, 2022
Verified that there is a segmentation fault on Linux too, using Python 3.10.0.
rhettinger commentedon May 16, 2022
Confirmed.
gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)
pythongh-92839: fixed typo in _bisectmodule.c (line 131) (pythonGH-92849
pythongh-92839: fixed typo in _bisectmodule.c (line 131) (pythonGH-92849
gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849)
gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849) (#93321)