Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix two typos in typeobject.c
  • Loading branch information
sobolevn committed Apr 18, 2024
commit 53b8f2fb2a13cd4e87f1f40b5002014962dd56ec
4 changes: 2 additions & 2 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class object "PyObject *" "&PyBaseObject_Type"
#ifdef Py_GIL_DISABLED

// There's a global lock for mutation of types. This avoids having to take
// additonal locks while doing various subclass processing which may result
// additional locks while doing various subclass processing which may result
// in odd behaviors w.r.t. running with the GIL as the outer type lock could
// be released and reacquired during a subclass update if there's contention
// on the subclass lock.
Expand Down Expand Up @@ -10395,7 +10395,7 @@ fixup_slot_dispatchers(PyTypeObject *type)
{
// This lock isn't strictly necessary because the type has not been
// exposed to anyone else yet, but update_ont_slot calls find_name_in_mro
// where we'd like to assert that the tyep is locked.
// where we'd like to assert that the type is locked.
BEGIN_TYPE_LOCK()

assert(!PyErr_Occurred());
Expand Down