Skip to content

Commit 4f23cab

Browse files
committed
Corrections for a/an in code comments and documentation
1 parent f2f1c57 commit 4f23cab

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

Demo/metaclasses/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ <H2>Writing Metaclasses in Python</H2>
222222
means calling the metainstance, and this will return a real instance.
223223
And what class is that an instance of? Conceptually, it is of course
224224
an instance of our metainstance; but in most cases the Python runtime
225-
system will see it as an instance of a a helper class used by the
225+
system will see it as an instance of a helper class used by the
226226
metaclass to implement its (non-meta) instances...
227227

228228
<P>Hopefully an example will make things clearer. Let's presume we

Doc/c-api/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ called with a non-string parameter.
8888
| :attr:`%%` | *n/a* | The literal % character. |
8989
+-------------------+---------------+--------------------------------+
9090
| :attr:`%c` | int | A single character, |
91-
| | | represented as an C int. |
91+
| | | represented as a C int. |
9292
+-------------------+---------------+--------------------------------+
9393
| :attr:`%d` | int | Exactly equivalent to |
9494
| | | ``printf("%d")``. |

Doc/library/codecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ particular, the following variants typically exist:
909909

910910
* an ISO 8859 codeset
911911

912-
* a Microsoft Windows code page, which is typically derived from a 8859 codeset,
912+
* a Microsoft Windows code page, which is typically derived from an 8859 codeset,
913913
but replaces control characters with additional graphic characters
914914

915915
* an IBM EBCDIC code page

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ Utility functions
18731873
allows specifying the size of the array if the length of the string should not
18741874
be used.
18751875

1876-
If the first parameter is a 8-bit string, it is converted into a unicode string
1876+
If the first parameter is an 8-bit string, it is converted into a unicode string
18771877
according to ctypes conversion rules.
18781878

18791879

Doc/library/imageop.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The module defines the following variables and functions:
4949

5050
.. function:: grey2mono(image, width, height, threshold)
5151

52-
Convert a 8-bit deep greyscale image to a 1-bit deep image by thresholding all
52+
Convert an 8-bit deep greyscale image to a 1-bit deep image by thresholding all
5353
the pixels. The resulting image is tightly packed and is probably only useful
5454
as an argument to :func:`mono2grey`.
5555

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,7 @@ is generally interpreted as simple bytes.
27492749
.. attribute:: shape
27502750

27512751
A tuple of integers the length of :attr:`ndim` giving the shape of the
2752-
memory as a N-dimensional array.
2752+
memory as an N-dimensional array.
27532753

27542754
.. attribute:: ndim
27552755

Include/memoryobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
3333
original buffer if a copy must be made. If buffertype is
3434
PyBUF_WRITE and the buffer is not contiguous an error will
3535
be raised. In this circumstance, the user can use
36-
PyBUF_SHADOW to ensure that a a writable temporary
36+
PyBUF_SHADOW to ensure that a writable temporary
3737
contiguous buffer is returned. The contents of this
3838
contiguous buffer will be copied back into the original
3939
object after the memoryview object is deleted as long as

Include/pythonrun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
155155

156156
/* Stack size, in "pointers" (so we get extra safety margins
157157
on 64-bit platforms). On a 32-bit platform, this translates
158-
to a 8k margin. */
158+
to an 8k margin. */
159159
#define PYOS_STACK_MARGIN 2048
160160

161161
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300

Lib/lib-tk/Tkinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ def getint_event(s):
12521252
# time field: "valid for events that contain a time field"
12531253
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
12541254
# and Expose events only
1255-
# x field: "valid for events that contain a x field"
1255+
# x field: "valid for events that contain an x field"
12561256
# y field: "valid for events that contain a y field"
12571257
# keysym as decimal: KeyPress and KeyRelease events only
12581258
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,

Lib/test/test_imageop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_main():
121121
print 'grey2rgb'
122122
image = imageop.grey2rgb(greyimage, width, height)
123123

124-
# Convert a 8-bit deep greyscale image to a 1-bit deep image by
124+
# Convert an 8-bit deep greyscale image to a 1-bit deep image by
125125
# thresholding all the pixels. The resulting image is tightly packed
126126
# and is probably only useful as an argument to mono2grey.
127127
if verbose:

0 commit comments

Comments
 (0)