]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix two typos in `typeobject.c` (#118024)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 18 Apr 2024 07:46:05 +0000 (10:46 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2024 07:46:05 +0000 (08:46 +0100)
Objects/typeobject.c

index ffd66fd8769e1d7cd302caa23b3f1e27728fb2b6..2f356388785665df75a6278742c7f9ceb02107d9 100644 (file)
@@ -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.
@@ -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());