summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-03-15 16:55:01 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-03-15 16:55:01 (GMT)
commit24b07bcba350bb86c4d6ca446e1564647a199868 (patch)
tree1815b1c49a6aec401da86b33fa81d06a0c735679 /Objects
parent1aa999c49ed82c89257c13cba5e210c3ba34c130 (diff)
downloadcpython-24b07bcba350bb86c4d6ca446e1564647a199868.zip
cpython-24b07bcba350bb86c4d6ca446e1564647a199868.tar.gz
cpython-24b07bcba350bb86c4d6ca446e1564647a199868.tar.bz2
#11515: fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytearrayobject.c2
-rw-r--r--Objects/longobject.c2
-rw-r--r--Objects/stringlib/string_format.h2
-rw-r--r--Objects/stringobject.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 8609395..6c64b57 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -2291,7 +2291,7 @@ bytearray_extend(PyByteArrayObject *self, PyObject *arg)
if (it == NULL)
return NULL;
- /* Try to determine the length of the argument. 32 is abitrary. */
+ /* Try to determine the length of the argument. 32 is arbitrary. */
buf_size = _PyObject_LengthHint(arg, 32);
if (buf_size == -1) {
Py_DECREF(it);
diff --git a/Objects/longobject.c b/Objects/longobject.c
index fbd18a2..05d44b3 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2895,7 +2895,7 @@ ah*bh and al*bl too.
* of slices, each with a->ob_size digits, and multiply the slices by a,
* one at a time. This gives k_mul balanced inputs to work with, and is
* also cache-friendly (we compute one double-width slice of the result
- * at a time, then move on, never bactracking except for the helpful
+ * at a time, then move on, never backtracking except for the helpful
* single-width slice overlap between successive partial sums).
*/
static PyLongObject *
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h
index e7bf724..075fa1d 100644
--- a/Objects/stringlib/string_format.h
+++ b/Objects/stringlib/string_format.h
@@ -6,7 +6,7 @@
*/
-/* Defines for Python 2.6 compatability */
+/* Defines for Python 2.6 compatibility */
#if PY_VERSION_HEX < 0x03000000
#define PyLong_FromSsize_t _PyLong_FromSsize_t
#endif
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 6d3ca8e..0a7e78d 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -744,7 +744,7 @@ PyObject *PyString_DecodeEscape(const char *s,
default:
*p++ = '\\';
s--;
- goto non_esc; /* an arbitry number of unescaped
+ goto non_esc; /* an arbitrary number of unescaped
UTF-8 bytes may follow. */
}
}