[Python-checkins] Fix typo in Object/listobject.c (GH-21079)

Jeong Ukjae webhook-mailer at python.org
Mon Jun 29 14:57:04 EDT 2020


https://github.com/python/cpython/commit/5b96370030707b68e8a5b787e933654297ddbc98
commit: 5b96370030707b68e8a5b787e933654297ddbc98
branch: master
author: Jeong Ukjae <JeongUkJae at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-06-29T21:56:56+03:00
summary:

Fix typo in Object/listobject.c (GH-21079)

files:
M Misc/NEWS.d/3.9.0a5.rst
M Objects/listobject.c

diff --git a/Misc/NEWS.d/3.9.0a5.rst b/Misc/NEWS.d/3.9.0a5.rst
index 01cbd4423426e..39e017768c3ad 100644
--- a/Misc/NEWS.d/3.9.0a5.rst
+++ b/Misc/NEWS.d/3.9.0a5.rst
@@ -176,7 +176,7 @@ convention. Patch by Dong-hee Na.
 .. section: Core and Builtins
 
 Chaged list overallocation strategy. It no longer overallocates if the new
-size is closer to overalocated size than to the old size and adds padding.
+size is closer to overallocated size than to the old size and adds padding.
 
 ..
 
diff --git a/Objects/listobject.c b/Objects/listobject.c
index ab036154eacc2..aac87ea1b61c9 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -69,7 +69,7 @@ list_resize(PyListObject *self, Py_ssize_t newsize)
      *       is PY_SSIZE_T_MAX * (9 / 8) + 6 which always fits in a size_t.
      */
     new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3;
-    /* Do not overallocate if the new size is closer to overalocated size
+    /* Do not overallocate if the new size is closer to overallocated size
      * than to the old size.
      */
     if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))



More information about the Python-checkins mailing list