Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4c35964b
Commit
4c35964b
authored
May 08, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections for a/an in code comments and documentation
parent
f0564164
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
14 deletions
+14
-14
Doc/library/codecs.rst
Doc/library/codecs.rst
+1
-1
Include/pythonrun.h
Include/pythonrun.h
+1
-1
Lib/pickletools.py
Lib/pickletools.py
+4
-4
Lib/tkinter/__init__.py
Lib/tkinter/__init__.py
+1
-1
Mac/README
Mac/README
+1
-1
Modules/arraymodule.c
Modules/arraymodule.c
+1
-1
Modules/audioop.c
Modules/audioop.c
+2
-2
PC/pyconfig.h
PC/pyconfig.h
+1
-1
Python/formatter_unicode.c
Python/formatter_unicode.c
+2
-2
No files found.
Doc/library/codecs.rst
View file @
4c35964b
...
@@ -977,7 +977,7 @@ particular, the following variants typically exist:
...
@@ -977,7 +977,7 @@ particular, the following variants typically exist:
* an ISO 8859 codeset
* an ISO 8859 codeset
* a Microsoft Windows code page, which is typically derived from a 8859 codeset,
* a Microsoft Windows code page, which is typically derived from a
n
8859 codeset,
but replaces control characters with additional graphic characters
but replaces control characters with additional graphic characters
* an IBM EBCDIC code page
* an IBM EBCDIC code page
...
...
Include/pythonrun.h
View file @
4c35964b
...
@@ -176,7 +176,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
...
@@ -176,7 +176,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
/* Stack size, in "pointers" (so we get extra safety margins
/* Stack size, in "pointers" (so we get extra safety margins
on 64-bit platforms). On a 32-bit platform, this translates
on 64-bit platforms). On a 32-bit platform, this translates
to a 8k margin. */
to a
n
8k margin. */
#define PYOS_STACK_MARGIN 2048
#define PYOS_STACK_MARGIN 2048
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300
...
...
Lib/pickletools.py
View file @
4c35964b
...
@@ -590,7 +590,7 @@ bytes8 = ArgumentDescriptor(
...
@@ -590,7 +590,7 @@ bytes8 = ArgumentDescriptor(
reader
=
read_bytes8
,
reader
=
read_bytes8
,
doc
=
"""A counted bytes string.
doc
=
"""A counted bytes string.
The first argument is a 8-byte little-endian unsigned int giving
The first argument is a
n
8-byte little-endian unsigned int giving
the number of bytes, and the second argument is that many bytes.
the number of bytes, and the second argument is that many bytes.
"""
)
"""
)
...
@@ -734,7 +734,7 @@ unicodestring8 = ArgumentDescriptor(
...
@@ -734,7 +734,7 @@ unicodestring8 = ArgumentDescriptor(
reader
=
read_unicodestring8
,
reader
=
read_unicodestring8
,
doc
=
"""A counted Unicode string.
doc
=
"""A counted Unicode string.
The first argument is a 8-byte little-endian signed int
The first argument is a
n
8-byte little-endian signed int
giving the number of bytes in the string, and the second
giving the number of bytes in the string, and the second
argument-- the UTF-8 encoding of the Unicode string --
argument-- the UTF-8 encoding of the Unicode string --
contains that many bytes.
contains that many bytes.
...
@@ -1330,7 +1330,7 @@ opcodes = [
...
@@ -1330,7 +1330,7 @@ opcodes = [
proto
=
4
,
proto
=
4
,
doc
=
"""Push a Python bytes object.
doc
=
"""Push a Python bytes object.
There are two arguments: the first is a 8-byte unsigned int giving
There are two arguments: the first is a
n
8-byte unsigned int giving
the number of bytes in the string, and the second is that many bytes,
the number of bytes in the string, and the second is that many bytes,
which are taken literally as the string content.
which are taken literally as the string content.
"""
),
"""
),
...
@@ -1417,7 +1417,7 @@ opcodes = [
...
@@ -1417,7 +1417,7 @@ opcodes = [
proto
=
4
,
proto
=
4
,
doc
=
"""Push a Python Unicode string object.
doc
=
"""Push a Python Unicode string object.
There are two arguments: the first is a 8-byte little-endian signed int
There are two arguments: the first is a
n
8-byte little-endian signed int
giving the number of bytes in the string. The second is that many
giving the number of bytes in the string. The second is that many
bytes, and is the UTF-8 encoding of the Unicode string.
bytes, and is the UTF-8 encoding of the Unicode string.
"""
),
"""
),
...
...
Lib/tkinter/__init__.py
View file @
4c35964b
...
@@ -1257,7 +1257,7 @@ class Misc:
...
@@ -1257,7 +1257,7 @@ class Misc:
# time field: "
valid
for
events
that
contain
a
time
field
"
# time field: "
valid
for
events
that
contain
a
time
field
"
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
# and Expose events only
# and Expose events only
# x field: "
valid
for
events
that
contain
a
x
field
"
# x field: "
valid
for
events
that
contain
a
n
x
field
"
# y field: "
valid
for
events
that
contain
a
y
field
"
# y field: "
valid
for
events
that
contain
a
y
field
"
# keysym as decimal: KeyPress and KeyRelease events only
# keysym as decimal: KeyPress and KeyRelease events only
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
...
...
Mac/README
View file @
4c35964b
...
@@ -126,7 +126,7 @@ values are available:
...
@@ -126,7 +126,7 @@ values are available:
To build a universal binary that includes a 64-bit architecture, you must build
To build a universal binary that includes a 64-bit architecture, you must build
on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
only be built with a
n
10.5 SDK because ``ppc64`` support was only included with
only be built with a 10.5 SDK because ``ppc64`` support was only included with
OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
and which is the standard for OS X 10.7. To summarize, the
and which is the standard for OS X 10.7. To summarize, the
...
...
Modules/arraymodule.c
View file @
4c35964b
...
@@ -2090,7 +2090,7 @@ array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
...
@@ -2090,7 +2090,7 @@ array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
* that fits better. This may result in an array with narrower
* that fits better. This may result in an array with narrower
* or wider elements.
* or wider elements.
*
*
* For example, if a 32-bit machine pickles a L-code array of
* For example, if a 32-bit machine pickles a
n
L-code array of
* unsigned longs, then the array will be unpickled by 64-bit
* unsigned longs, then the array will be unpickled by 64-bit
* machine as an I-code array of unsigned ints.
* machine as an I-code array of unsigned ints.
*
*
...
...
Modules/audioop.c
View file @
4c35964b
...
@@ -46,7 +46,7 @@ fbound(double val, double minval, double maxval)
...
@@ -46,7 +46,7 @@ fbound(double val, double minval, double maxval)
*/
*/
#define BIAS 0x84
/* define the add-in bias for 16 bit samples */
#define BIAS 0x84
/* define the add-in bias for 16 bit samples */
#define CLIP 32635
#define CLIP 32635
#define SIGN_BIT (0x80)
/* Sign bit for a A-law byte. */
#define SIGN_BIT (0x80)
/* Sign bit for a
n
A-law byte. */
#define QUANT_MASK (0xf)
/* Quantization field mask. */
#define QUANT_MASK (0xf)
/* Quantization field mask. */
#define SEG_SHIFT (4)
/* Left shift for segment number. */
#define SEG_SHIFT (4)
/* Left shift for segment number. */
#define SEG_MASK (0x70)
/* Segment field mask. */
#define SEG_MASK (0x70)
/* Segment field mask. */
...
@@ -217,7 +217,7 @@ static PyInt16 _st_alaw2linear16[256] = {
...
@@ -217,7 +217,7 @@ static PyInt16 _st_alaw2linear16[256] = {
};
};
/*
/*
* linear2alaw() accepts a
n
13-bit signed integer and encodes it as A-law data
* linear2alaw() accepts a 13-bit signed integer and encodes it as A-law data
* stored in an unsigned char. This function should only be called with
* stored in an unsigned char. This function should only be called with
* the data shifted such that it only contains information in the lower
* the data shifted such that it only contains information in the lower
* 13-bits.
* 13-bits.
...
...
PC/pyconfig.h
View file @
4c35964b
...
@@ -347,7 +347,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
...
@@ -347,7 +347,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
# define SIZEOF_FPOS_T 8
# define SIZEOF_FPOS_T 8
# define SIZEOF_HKEY 4
# define SIZEOF_HKEY 4
# define SIZEOF_SIZE_T 4
# define SIZEOF_SIZE_T 4
/* MS VS2005 changes time_t to a
n
64-bit type on all platforms */
/* MS VS2005 changes time_t to a 64-bit type on all platforms */
# if defined(_MSC_VER) && _MSC_VER >= 1400
# if defined(_MSC_VER) && _MSC_VER >= 1400
# define SIZEOF_TIME_T 8
# define SIZEOF_TIME_T 8
# else
# else
...
...
Python/formatter_unicode.c
View file @
4c35964b
...
@@ -1042,7 +1042,7 @@ format_float_internal(PyObject *value,
...
@@ -1042,7 +1042,7 @@ format_float_internal(PyObject *value,
else
if
(
type
==
'r'
)
else
if
(
type
==
'r'
)
type
=
'g'
;
type
=
'g'
;
/* Cast "type", because if we're in unicode we need to pass a
/* Cast "type", because if we're in unicode we need to pass a
n
8-bit char. This is safe, because we've restricted what "type"
8-bit char. This is safe, because we've restricted what "type"
can be. */
can be. */
buf
=
PyOS_double_to_string
(
val
,
(
char
)
type
,
precision
,
flags
,
buf
=
PyOS_double_to_string
(
val
,
(
char
)
type
,
precision
,
flags
,
...
@@ -1221,7 +1221,7 @@ format_complex_internal(PyObject *value,
...
@@ -1221,7 +1221,7 @@ format_complex_internal(PyObject *value,
else
if
(
type
==
'r'
)
else
if
(
type
==
'r'
)
type
=
'g'
;
type
=
'g'
;
/* Cast "type", because if we're in unicode we need to pass a
/* Cast "type", because if we're in unicode we need to pass a
n
8-bit char. This is safe, because we've restricted what "type"
8-bit char. This is safe, because we've restricted what "type"
can be. */
can be. */
re_buf
=
PyOS_double_to_string
(
re
,
(
char
)
type
,
precision
,
flags
,
re_buf
=
PyOS_double_to_string
(
re
,
(
char
)
type
,
precision
,
flags
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment