We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e43c18 commit eb5cb1cCopy full SHA for eb5cb1c
1 file changed
Objects/stringlib/join.h
@@ -81,7 +81,8 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable)
81
* races anyway, but this is a conservative approach that avoids
82
* changing the behaviour of that data race.
83
*/
84
- if (!PyBytes_CheckExact(buffers[i].obj)) {
+ PyObject *bufobj = buffers[i].obj;
85
+ if (!bufobj || !PyBytes_CheckExact(bufobj)) {
86
drop_gil = 0;
87
}
88
0 commit comments