summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:39:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:39:28 (GMT)
commitb6a9c9761ca988e1ab69defd45433fac0b2ff89c (patch)
tree0071290253b0ef28f62f3f22d69be89db2abad50 /Objects
parent5562563dd4a745ecac8e6830b2a15042beb5dd47 (diff)
parent6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d (diff)
downloadcpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.zip
cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.gz
cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.bz2
Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytearrayobject.c2
-rw-r--r--Objects/rangeobject.c2
-rw-r--r--Objects/stringlib/unicode_format.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index de7fb1e..d0260c9 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -3018,7 +3018,7 @@ bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
bytearray() -> empty bytes array\n\
\n\
-Construct an mutable bytearray object from:\n\
+Construct a mutable bytearray object from:\n\
- an iterable yielding integers in range(256)\n\
- a text string encoded using the specified encoding\n\
- a bytes or a buffer object\n\
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 2be32e0..0e9eb20 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -5,7 +5,7 @@
/* Support objects whose length is > PY_SSIZE_T_MAX.
- This could be sped up for small PyLongs if they fit in an Py_ssize_t.
+ This could be sped up for small PyLongs if they fit in a Py_ssize_t.
This only matters on Win64. Though we could use PY_LONG_LONG which
would presumably help perf.
*/
diff --git a/Objects/stringlib/unicode_format.h b/Objects/stringlib/unicode_format.h
index d72e47d..14fa28e 100644
--- a/Objects/stringlib/unicode_format.h
+++ b/Objects/stringlib/unicode_format.h
@@ -1226,7 +1226,7 @@ static PyTypeObject PyFieldNameIter_Type = {
0};
/* unicode_formatter_field_name_split is used to implement
- string.Formatter.vformat. it takes an PEP 3101 "field name", and
+ string.Formatter.vformat. it takes a PEP 3101 "field name", and
returns a tuple of (first, rest): "first", the part before the
first '.' or '['; and "rest", an iterator for the rest of the field
name. it's a wrapper around stringlib/string_format.h's