Skip to content

Commit 17ed54b

Browse files
authored
Fix two typos in typeobject.c (#118024)
1 parent cd7cf15 commit 17ed54b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class object "PyObject *" "&PyBaseObject_Type"
5656
#ifdef Py_GIL_DISABLED
5757

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

1040110401
assert(!PyErr_Occurred());

0 commit comments

Comments
 (0)