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
37b5f9ee
Commit
37b5f9ee
authored
Sep 01, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some misuses of Sphinx roles and one typo
parent
941afedd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/c-api/init.rst
Doc/c-api/init.rst
+2
-2
Doc/faq/design.rst
Doc/faq/design.rst
+1
-1
Doc/faq/windows.rst
Doc/faq/windows.rst
+1
-1
Doc/howto/logging.rst
Doc/howto/logging.rst
+3
-3
Doc/library/argparse.rst
Doc/library/argparse.rst
+1
-1
No files found.
Doc/c-api/init.rst
View file @
37b5f9ee
...
@@ -122,7 +122,7 @@ Process-wide parameters
...
@@ -122,7 +122,7 @@ Process-wide parameters
program name is ``'/usr/local/bin/python'``, the prefix is ``'/usr/local'``. The
program name is ``'/usr/local/bin/python'``, the prefix is ``'/usr/local'``. The
returned string points into static storage; the caller should not modify its
returned string points into static storage; the caller should not modify its
value. This corresponds to the :makevar:`prefix` variable in the top-level
value. This corresponds to the :makevar:`prefix` variable in the top-level
:file:`Makefile` and the
:option:`--prefix
` argument to the :program:`configure`
:file:`Makefile` and the
``--prefix`
` argument to the :program:`configure`
script at build time. The value is available to Python code as ``sys.prefix``.
script at build time. The value is available to Python code as ``sys.prefix``.
It is only useful on Unix. See also the next function.
It is only useful on Unix. See also the next function.
...
@@ -135,7 +135,7 @@ Process-wide parameters
...
@@ -135,7 +135,7 @@ Process-wide parameters
program name is ``'/usr/local/bin/python'``, the exec-prefix is
program name is ``'/usr/local/bin/python'``, the exec-prefix is
``'/usr/local'``. The returned string points into static storage; the caller
``'/usr/local'``. The returned string points into static storage; the caller
should not modify its value. This corresponds to the :makevar:`exec_prefix`
should not modify its value. This corresponds to the :makevar:`exec_prefix`
variable in the top-level :file:`Makefile` and the
:option:`--exec-prefix
`
variable in the top-level :file:`Makefile` and the
``--exec-prefix`
`
argument to the :program:`configure` script at build time. The value is
argument to the :program:`configure` script at build time. The value is
available to Python code as ``sys.exec_prefix``. It is only useful on Unix.
available to Python code as ``sys.exec_prefix``. It is only useful on Unix.
...
...
Doc/faq/design.rst
View file @
37b5f9ee
...
@@ -667,7 +667,7 @@ construction of large programs.
...
@@ -667,7 +667,7 @@ construction of large programs.
Python 2.6 adds an :mod:`abc` module that lets you define Abstract Base Classes
Python 2.6 adds an :mod:`abc` module that lets you define Abstract Base Classes
(ABCs). You can then use :func:`isinstance` and :func:`issubclass` to check
(ABCs). You can then use :func:`isinstance` and :func:`issubclass` to check
whether an instance or a class implements a particular ABC. The
whether an instance or a class implements a particular ABC. The
:mod:`collections` module
s
defines a set of useful ABCs such as
:mod:`collections` module defines a set of useful ABCs such as
:class:`Iterable`, :class:`Container`, and :class:`MutableMapping`.
:class:`Iterable`, :class:`Container`, and :class:`MutableMapping`.
For Python, many of the advantages of interface specifications can be obtained
For Python, many of the advantages of interface specifications can be obtained
...
...
Doc/faq/windows.rst
View file @
37b5f9ee
...
@@ -546,7 +546,7 @@ A trick to get it to run an arbitrary file is to construct a call to
...
@@ -546,7 +546,7 @@ A trick to get it to run an arbitrary file is to construct a call to
:func:`execfile` with the name of your file as argument.
:func:`execfile` with the name of your file as argument.
Also note that you can not mix-and-match Debug and Release versions. If you
Also note that you can not mix-and-match Debug and Release versions. If you
wish to use the Debug Multithreaded DLL, then your module *must* have
an "_d"
wish to use the Debug Multithreaded DLL, then your module *must* have
``_d``
appended to the base name.
appended to the base name.
...
...
Doc/howto/logging.rst
View file @
37b5f9ee
...
@@ -412,10 +412,10 @@ With the logger object configured, the following methods create log messages:
...
@@ -412,10 +412,10 @@ With the logger object configured, the following methods create log messages:
:meth:`Logger.error`, and :meth:`Logger.critical` all create log records with
:meth:`Logger.error`, and :meth:`Logger.critical` all create log records with
a message and a level that corresponds to their respective method names. The
a message and a level that corresponds to their respective method names. The
message is actually a format string, which may contain the standard string
message is actually a format string, which may contain the standard string
substitution syntax of
:const:`%s`, :const:`%d`, :const:`%f
`, and so on. The
substitution syntax of
``%s``, ``%d``, ``%f`
`, and so on. The
rest of their arguments is a list of objects that correspond with the
rest of their arguments is a list of objects that correspond with the
substitution fields in the message. With regard to
:const:`**kwargs
`, the
substitution fields in the message. With regard to
``**kwargs`
`, the
logging methods care only about a keyword of
:const:`exc_info
` and use it to
logging methods care only about a keyword of
``exc_info`
` and use it to
determine whether to log exception information.
determine whether to log exception information.
* :meth:`Logger.exception` creates a log message similar to
* :meth:`Logger.exception` creates a log message similar to
...
...
Doc/library/argparse.rst
View file @
37b5f9ee
...
@@ -155,7 +155,7 @@ ArgumentParser objects
...
@@ -155,7 +155,7 @@ ArgumentParser objects
conflicting optionals.
conflicting optionals.
* prog_ - The name of the program (default:
* prog_ - The name of the program (default:
:data:`sys.argv[0]
`)
``sys.argv[0]`
`)
* usage_ - The string describing the program usage (default: generated)
* usage_ - The string describing the program usage (default: generated)
...
...
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