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
5a63ae88
Commit
5a63ae88
authored
Mar 13, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#5486: typos.
parent
45343feb
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
27 additions
and
27 deletions
+27
-27
Doc/c-api/buffer.rst
Doc/c-api/buffer.rst
+1
-1
Doc/c-api/init.rst
Doc/c-api/init.rst
+1
-1
Doc/c-api/typeobj.rst
Doc/c-api/typeobj.rst
+1
-1
Doc/distutils/packageindex.rst
Doc/distutils/packageindex.rst
+2
-2
Doc/library/2to3.rst
Doc/library/2to3.rst
+4
-4
Doc/library/cgi.rst
Doc/library/cgi.rst
+2
-2
Doc/library/exceptions.rst
Doc/library/exceptions.rst
+1
-1
Doc/library/importlib.rst
Doc/library/importlib.rst
+3
-3
Doc/library/pickle.rst
Doc/library/pickle.rst
+3
-3
Doc/library/re.rst
Doc/library/re.rst
+1
-1
Doc/library/tkinter.ttk.rst
Doc/library/tkinter.ttk.rst
+2
-2
Doc/library/tokenize.rst
Doc/library/tokenize.rst
+1
-1
Doc/library/turtle.rst
Doc/library/turtle.rst
+3
-3
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+1
-1
Doc/reference/expressions.rst
Doc/reference/expressions.rst
+1
-1
No files found.
Doc/c-api/buffer.rst
View file @
5a63ae88
...
@@ -93,7 +93,7 @@ could be used to pass around structured data in its native, in-memory format.
...
@@ -93,7 +93,7 @@ could be used to pass around structured data in its native, in-memory format.
occur (striding in a contiguous memory block).
occur (striding in a contiguous memory block).
Here is a function that returns a pointer to the element in an N-D array
Here is a function that returns a pointer to the element in an N-D array
pointed to by an N-dimesional index when there are both non-NULL strides
pointed to by an N-dime
n
sional index when there are both non-NULL strides
and suboffsets::
and suboffsets::
void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,
void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,
...
...
Doc/c-api/init.rst
View file @
5a63ae88
...
@@ -820,7 +820,7 @@ interpreter lock and can perform any Python API calls.
...
@@ -820,7 +820,7 @@ interpreter lock and can perform any Python API calls.
it returns -1 without setting any exception.
it returns -1 without setting any exception.
This function can be called on any thread, be it a Python thread or
This function can be called on any thread, be it a Python thread or
some other system thread. If it is a Python thread, it does
e
n't matter if
some other system thread. If it is a Python thread, it doesn't matter if
it holds the global interpreter lock or not.
it holds the global interpreter lock or not.
.. versionadded:: 2.7
.. versionadded:: 2.7
...
...
Doc/c-api/typeobj.rst
View file @
5a63ae88
...
@@ -1214,7 +1214,7 @@ member in the :ctype:`PyTypeObject` structure should be *NULL*. Otherwise, the
...
@@ -1214,7 +1214,7 @@ member in the :ctype:`PyTypeObject` structure should be *NULL*. Otherwise, the
export, *view* is the :ctype:`Py_buffer` struct to fill, and *flags* gives
export, *view* is the :ctype:`Py_buffer` struct to fill, and *flags* gives
the conditions the caller wants the memory under. (See
the conditions the caller wants the memory under. (See
:cfunc:`PyObject_GetBuffer` for all flags.) :cmember:`bf_getbuffer` is
:cfunc:`PyObject_GetBuffer` for all flags.) :cmember:`bf_getbuffer` is
responsible for filling *view* with the approiate information.
responsible for filling *view* with the appro
pr
iate information.
(:cfunc:`PyBuffer_FillView` can be used in simple cases.) See
(:cfunc:`PyBuffer_FillView` can be used in simple cases.) See
:ctype:`Py_buffer`\s docs for what needs to be filled in.
:ctype:`Py_buffer`\s docs for what needs to be filled in.
...
...
Doc/distutils/packageindex.rst
View file @
5a63ae88
...
@@ -98,7 +98,7 @@ repository to work with::
...
@@ -98,7 +98,7 @@ repository to work with::
python setup.py register -r http://example.com/pypi
python setup.py register -r http://example.com/pypi
The name of the section that describes the repository may also be used
For convenience, the name of the section that describes the repository
for conveniency
::
may also be used
::
python setup.py register -r other
python setup.py register -r other
Doc/library/2to3.rst
View file @
5a63ae88
...
@@ -99,7 +99,7 @@ differentiate between the print statement with parentheses (such as ``print
...
@@ -99,7 +99,7 @@ differentiate between the print statement with parentheses (such as ``print
Fixers
Fixers
------
------
Each step of tranforming code is encapsulated in a fixer. The command ``2to3
Each step of tran
s
forming code is encapsulated in a fixer. The command ``2to3
-l`` lists them. As :ref:`documented above <2to3-using>`, each can be turned on
-l`` lists them. As :ref:`documented above <2to3-using>`, each can be turned on
and off individually. They are described here in more detail.
and off individually. They are described here in more detail.
...
@@ -167,11 +167,11 @@ and off individually. They are described here in more detail.
...
@@ -167,11 +167,11 @@ and off individually. They are described here in more detail.
.. 2to3fixer:: idioms
.. 2to3fixer:: idioms
This optional fixer p
re
forms several transformations that make Python code
This optional fixer p
er
forms several transformations that make Python code
more idiomatic. Type comparis
i
ons like ``type(x) is SomeClass`` and
more idiomatic. Type comparisons like ``type(x) is SomeClass`` and
``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``.
``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``.
``while 1`` becomes ``while True``. This fixer also tries to make use of
``while 1`` becomes ``while True``. This fixer also tries to make use of
:func:`sorted` in appropiate places. For example, this block ::
:func:`sorted` in approp
r
iate places. For example, this block ::
L = list(some_iterable)
L = list(some_iterable)
L.sort()
L.sort()
...
...
Doc/library/cgi.rst
View file @
5a63ae88
...
@@ -265,12 +265,12 @@ algorithms implemented in this module in other circumstances.
...
@@ -265,12 +265,12 @@ algorithms implemented in this module in other circumstances.
.. function:: parse_qs(qs[, keep_blank_values[, strict_parsing]])
.. function:: parse_qs(qs[, keep_blank_values[, strict_parsing]])
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
instead. It is maintained here only for backward compatiblity.
instead. It is maintained here only for backward compatib
i
lity.
.. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])
.. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
instead. It is maintained here only for backward compatiblity.
instead. It is maintained here only for backward compatib
i
lity.
.. function:: parse_multipart(fp, pdict)
.. function:: parse_multipart(fp, pdict)
...
...
Doc/library/exceptions.rst
View file @
5a63ae88
...
@@ -53,7 +53,7 @@ The following exceptions are only used as base classes for other exceptions.
...
@@ -53,7 +53,7 @@ The following exceptions are only used as base classes for other exceptions.
The base class for all built-in exceptions. It is not meant to be directly
The base class for all built-in exceptions. It is not meant to be directly
inherited by user-defined classes (for that use :exc:`Exception`). If
inherited by user-defined classes (for that use :exc:`Exception`). If
:func:`str` or :func:`unicode` is called on an instance of this class, the
:func:`str` or :func:`unicode` is called on an instance of this class, the
representation of the argument(s) to the instance are returned or the empt
r
y
representation of the argument(s) to the instance are returned or the empty
string when there were no arguments. All arguments are stored in :attr:`args`
string when there were no arguments. All arguments are stored in :attr:`args`
as a tuple.
as a tuple.
...
...
Doc/library/importlib.rst
View file @
5a63ae88
...
@@ -78,9 +78,9 @@ Functions
...
@@ -78,9 +78,9 @@ Functions
The :func:`import_module` function acts as a simplifying wrapper around
The :func:`import_module` function acts as a simplifying wrapper around
:func:`__import__`. This means all semantics of the function are derived
:func:`__import__`. This means all semantics of the function are derived
from :func:`__import__`, including requiring the package
where an import is
from :func:`__import__`, including requiring the package
from which an
occuring from to already be imported (i.e., *package* must already be
import is occurring to have been previously imported (i.e., *package*
imported).
must already be
imported).
:mod:`importlib.abc` -- Abstract base classes related to import
:mod:`importlib.abc` -- Abstract base classes related to import
---------------------------------------------------------------
---------------------------------------------------------------
...
...
Doc/library/pickle.rst
View file @
5a63ae88
...
@@ -473,13 +473,13 @@ objects. [#]_
...
@@ -473,13 +473,13 @@ objects. [#]_
Although powerful, implementing :meth:`__reduce__` directly in your classes is
Although powerful, implementing :meth:`__reduce__` directly in your classes is
error prone. For this reason, class designers should use the high-level
error prone. For this reason, class designers should use the high-level
interface (i.e., :meth:`__getnewargs__`, :meth:`__getstate__` and
interface (i.e., :meth:`__getnewargs__`, :meth:`__getstate__` and
:meth:`__setstate__`) whenever possible. We will show
however
cases where using
:meth:`__setstate__`) whenever possible. We will show
, however,
cases where using
:meth:`__reduce__` is the only option or leads to more efficient pickling or
:meth:`__reduce__` is the only option or leads to more efficient pickling or
both.
both.
The interface is currently defined as follow. The :meth:`__reduce__` method
The interface is currently defined as follow
s
. The :meth:`__reduce__` method
takes no argument and shall return either a string or preferably a tuple (the
takes no argument and shall return either a string or preferably a tuple (the
returned object is often refer
ed
as the "reduce value").
returned object is often refer
red to
as the "reduce value").
If a string is returned, the string should be interpreted as the name of a
If a string is returned, the string should be interpreted as the name of a
global variable. It should be the object's local name relative to its module;
global variable. It should be the object's local name relative to its module;
...
...
Doc/library/re.rst
View file @
5a63ae88
...
@@ -16,7 +16,7 @@ those found in Perl. The :mod:`re` module is always available.
...
@@ -16,7 +16,7 @@ those found in Perl. The :mod:`re` module is always available.
Both patterns and strings to be searched can be Unicode strings as well as
Both patterns and strings to be searched can be Unicode strings as well as
8-bit strings. However, Unicode strings and 8-bit strings cannot be mixed:
8-bit strings. However, Unicode strings and 8-bit strings cannot be mixed:
that is, you cannot match an Unicode string with a byte pattern or
that is, you cannot match an Unicode string with a byte pattern or
vice-versa; similarly, when asking for a substition, the replacement
vice-versa; similarly, when asking for a substit
ut
ion, the replacement
string must be of the same type as both the pattern and the search string.
string must be of the same type as both the pattern and the search string.
Regular expressions use the backslash character (``'\'``) to indicate
Regular expressions use the backslash character (``'\'``) to indicate
...
...
Doc/library/tkinter.ttk.rst
View file @
5a63ae88
...
@@ -139,7 +139,7 @@ scrollbar.
...
@@ -139,7 +139,7 @@ scrollbar.
+----------------+---------------------------------------------------------+
+----------------+---------------------------------------------------------+
| option | description |
| option | description |
+================+=========================================================+
+================+=========================================================+
| xscrollcommand | Used to com
unicate with horizontal scrollbars.
|
| xscrollcommand | Used to com
municate with horizontal scrollbars.
|
| | |
| | |
| | When the view in the widget's window change, the widget |
| | When the view in the widget's window change, the widget |
| | will generate a Tcl command based on the scrollcommand. |
| | will generate a Tcl command based on the scrollcommand. |
...
@@ -149,7 +149,7 @@ scrollbar.
...
@@ -149,7 +149,7 @@ scrollbar.
| | the scrollbar to be updated whenever the view in the |
| | the scrollbar to be updated whenever the view in the |
| | window changes. |
| | window changes. |
+----------------+---------------------------------------------------------+
+----------------+---------------------------------------------------------+
| yscrollcommand | Used to com
unicate with vertical scrollbars.
|
| yscrollcommand | Used to com
municate with vertical scrollbars.
|
| | For some more information, see above. |
| | For some more information, see above. |
+----------------+---------------------------------------------------------+
+----------------+---------------------------------------------------------+
...
...
Doc/library/tokenize.rst
View file @
5a63ae88
...
@@ -82,7 +82,7 @@ function it uses to do this is available:
...
@@ -82,7 +82,7 @@ function it uses to do this is available:
.. function:: detect_encoding(readline)
.. function:: detect_encoding(readline)
The :func:`detect_encoding` function is used to detect the encoding that
The :func:`detect_encoding` function is used to detect the encoding that
should be used to decode a Python source file. It requires one argment,
should be used to decode a Python source file. It requires one arg
u
ment,
readline, in the same way as the :func:`tokenize` generator.
readline, in the same way as the :func:`tokenize` generator.
It will call readline a maximum of twice, and return the encoding used
It will call readline a maximum of twice, and return the encoding used
...
...
Doc/library/turtle.rst
View file @
5a63ae88
...
@@ -61,7 +61,7 @@ The object-oriented interface uses essentially two+two classes:
...
@@ -61,7 +61,7 @@ The object-oriented interface uses essentially two+two classes:
The procedural interface provides functions which are derived from the methods
The procedural interface provides functions which are derived from the methods
of the classes :class:`Screen` and :class:`Turtle`. They have the same names as
of the classes :class:`Screen` and :class:`Turtle`. They have the same names as
the corresponding methods. A screen object is automati
v
ally created whenever a
the corresponding methods. A screen object is automati
c
ally created whenever a
function derived from a Screen method is called. An (unnamed) turtle object is
function derived from a Screen method is called. An (unnamed) turtle object is
automatically created whenever any of the functions derived from a Turtle method
automatically created whenever any of the functions derived from a Turtle method
is called.
is called.
...
@@ -1584,7 +1584,7 @@ The public classes of the module :mod:`turtle`
...
@@ -1584,7 +1584,7 @@ The public classes of the module :mod:`turtle`
=========== ===========
=========== ===========
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
"image" an image (in this form only used internally!)
"image" an image (in this form only used internally!)
"compound" ``None`` (a compund shape has to be constructed using the
"compound" ``None`` (a comp
o
und shape has to be constructed using the
:meth:`addcomponent` method)
:meth:`addcomponent` method)
=========== ===========
=========== ===========
...
@@ -1806,7 +1806,7 @@ There is a set of demo scripts in the turtledemo directory located in the
...
@@ -1806,7 +1806,7 @@ There is a set of demo scripts in the turtledemo directory located in the
It contains:
It contains:
- a set of 15 demo scripts demonstrating differet features of the new module
- a set of 15 demo scripts demonstrating differe
n
t features of the new module
:mod:`turtle`
:mod:`turtle`
- a demo viewer :file:`turtleDemo.py` which can be used to view the sourcecode
- a demo viewer :file:`turtleDemo.py` which can be used to view the sourcecode
of the scripts and run them at the same time. 14 of the examples can be
of the scripts and run them at the same time. 14 of the examples can be
...
...
Doc/reference/datamodel.rst
View file @
5a63ae88
...
@@ -1240,7 +1240,7 @@ Basic customization
...
@@ -1240,7 +1240,7 @@ Basic customization
``isinstance(obj, collections.Hashable)`` (unlike classes which define their
``isinstance(obj, collections.Hashable)`` (unlike classes which define their
own :meth:`__hash__` to explicitly raise :exc:`TypeError`).
own :meth:`__hash__` to explicitly raise :exc:`TypeError`).
If a class that overr
r
ides :meth:`__eq__` needs to retain the implementation
If a class that overrides :meth:`__eq__` needs to retain the implementation
of :meth:`__hash__` from a parent class, the interpreter must be told this
of :meth:`__hash__` from a parent class, the interpreter must be told this
explicitly by setting ``__hash__ = <ParentClass>.__hash__``. Otherwise the
explicitly by setting ``__hash__ = <ParentClass>.__hash__``. Otherwise the
inheritance of :meth:`__hash__` will be blocked, just as if :attr:`__hash__`
inheritance of :meth:`__hash__` will be blocked, just as if :attr:`__hash__`
...
...
Doc/reference/expressions.rst
View file @
5a63ae88
...
@@ -1300,7 +1300,7 @@ groups from right to left).
...
@@ -1300,7 +1300,7 @@ groups from right to left).
.. [#] While comparisons between strings make sense at the byte level, they may
.. [#] While comparisons between strings make sense at the byte level, they may
be counter-intuitive to users. For example, the strings ``"\u00C7"`` and
be counter-intuitive to users. For example, the strings ``"\u00C7"`` and
``"\u0327\u0043"`` compare differently, even though they both represent the
``"\u0327\u0043"`` compare differently, even though they both represent the
same unicode character (LATIN CAP
T
ITAL LETTER C WITH CEDILLA). To compare
same unicode character (LATIN CAPITAL LETTER C WITH CEDILLA). To compare
strings in a human recognizable way, compare using
strings in a human recognizable way, compare using
:func:`unicodedata.normalize`.
:func:`unicodedata.normalize`.
...
...
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