Skip to content

Commit 9a118f1

Browse files
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
1 parent 0bb165e commit 9a118f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+90
-90
lines changed

Demo/tix/samples/Balloon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# program.
1212

1313
# This file demonstrates the use of the tixBalloon widget, which provides
14-
# a interesting way to give help tips about elements in your user interface.
14+
# an interesting way to give help tips about elements in your user interface.
1515
# Your can display the help message in a "balloon" and a status bar widget.
1616
#
1717

Demo/tix/samples/CmpImg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def RunSample(w):
155155
net = Tix.Button(w, padx=4, pady=1, width=120)
156156

157157
# Create the first image: we create a line, then put a string,
158-
# a space and a image into this line, from left to right.
158+
# a space and an image into this line, from left to right.
159159
# The result: we have a one-line image that consists of three
160160
# individual items
161161
#

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Object Protocol
157157
158158
.. index:: builtin: bytes
159159
160-
Compute a bytes representation of object *o*. In 2.x, this is just a alias
160+
Compute a bytes representation of object *o*. In 2.x, this is just an alias
161161
for :c:func:`PyObject_Str`.
162162
163163

Doc/c-api/set.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ or :class:`frozenset` or instances of their subtypes.
140140
Add *key* to a :class:`set` instance. Does not apply to :class:`frozenset`
141141
instances. Return 0 on success or -1 on failure. Raise a :exc:`TypeError` if
142142
the *key* is unhashable. Raise a :exc:`MemoryError` if there is no room to grow.
143-
Raise a :exc:`SystemError` if *set* is an not an instance of :class:`set` or its
143+
Raise a :exc:`SystemError` if *set* is not an instance of :class:`set` or its
144144
subtype.
145145
146146
.. versionchanged:: 2.6
@@ -158,15 +158,15 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
158158
error is encountered. Does not raise :exc:`KeyError` for missing keys. Raise a
159159
:exc:`TypeError` if the *key* is unhashable. Unlike the Python :meth:`~set.discard`
160160
method, this function does not automatically convert unhashable sets into
161-
temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is an not an
161+
temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is not an
162162
instance of :class:`set` or its subtype.
163163
164164
165165
.. c:function:: PyObject* PySet_Pop(PyObject *set)
166166
167167
Return a new reference to an arbitrary object in the *set*, and removes the
168168
object from the *set*. Return *NULL* on failure. Raise :exc:`KeyError` if the
169-
set is empty. Raise a :exc:`SystemError` if *set* is an not an instance of
169+
set is empty. Raise a :exc:`SystemError` if *set* is not an instance of
170170
:class:`set` or its subtype.
171171
172172

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ APIs:
260260
| :attr:`%%` | *n/a* | The literal % character. |
261261
+-------------------+---------------------+--------------------------------+
262262
| :attr:`%c` | int | A single character, |
263-
| | | represented as an C int. |
263+
| | | represented as a C int. |
264264
+-------------------+---------------------+--------------------------------+
265265
| :attr:`%d` | int | Exactly equivalent to |
266266
| | | ``printf("%d")``. |

Doc/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ selection by :class:`MSVCCompiler`.
832832
.. module:: distutils.bcppcompiler
833833

834834

835-
This module provides :class:`BorlandCCompiler`, an subclass of the abstract
835+
This module provides :class:`BorlandCCompiler`, a subclass of the abstract
836836
:class:`CCompiler` class for the Borland C++ compiler.
837837

838838

Doc/howto/urllib2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
.. note::
88

9-
There is an French translation of an earlier revision of this
9+
There is a French translation of an earlier revision of this
1010
HOWTO, available at `urllib2 - Le Manuel manquant
1111
<http://www.voidspace.org.uk/python/articles/urllib2_francais.shtml>`_.
1212

Doc/library/ctypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ positive integer::
657657

658658
TenPointsArrayType = POINT * 10
659659

660-
Here is an example of an somewhat artificial data type, a structure containing 4
660+
Here is an example of a somewhat artificial data type, a structure containing 4
661661
POINTs among other stuff::
662662

663663
>>> from ctypes import *
@@ -1576,7 +1576,7 @@ They are instances of a private class:
15761576
tuple, this method allows adapting the actual argument to an object that
15771577
the foreign function accepts. For example, a :class:`c_char_p` item in
15781578
the :attr:`argtypes` tuple will convert a unicode string passed as
1579-
argument into an byte string using ctypes conversion rules.
1579+
argument into a byte string using ctypes conversion rules.
15801580

15811581
New: It is now possible to put items in argtypes which are not ctypes
15821582
types, but each item must have a :meth:`from_param` method which returns a
@@ -1964,7 +1964,7 @@ Utility functions
19641964
.. function:: POINTER(type)
19651965

19661966
This factory function creates and returns a new ctypes pointer type. Pointer
1967-
types are cached an reused internally, so calling this function repeatedly is
1967+
types are cached and reused internally, so calling this function repeatedly is
19681968
cheap. *type* must be a ctypes type.
19691969

19701970

Doc/library/fl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ here.
310310

311311
.. method:: form.add_input(type, x, y, w, h, name)
312312

313-
Add a input object to the form. --- Methods: :meth:`set_input`,
313+
Add an input object to the form. --- Methods: :meth:`set_input`,
314314
:meth:`get_input`, :meth:`set_input_color`, :meth:`set_input_return`.
315315

316316

Doc/library/idle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Find Selection
128128
Search for the currently selected string, if there is one.
129129

130130
Find in Files...
131-
Open a file search dialog. Put results in an new output window.
131+
Open a file search dialog. Put results in a new output window.
132132

133133
Replace...
134134
Open a search-and-replace dialog.

0 commit comments

Comments
 (0)