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
50038013
Commit
50038013
authored
Oct 31, 2014
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#22613: minor other fixes in library docs (thanks Jacques Ducasse)
parent
fb52e38a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
Doc/library/ctypes.rst
Doc/library/ctypes.rst
+1
-6
Doc/library/pydoc.rst
Doc/library/pydoc.rst
+7
-0
Doc/library/tempfile.rst
Doc/library/tempfile.rst
+1
-1
No files found.
Doc/library/ctypes.rst
View file @
50038013
...
...
@@ -1909,7 +1909,7 @@ Utility functions
.. function:: find_msvcrt()
:module: ctypes.util
Windows only: return the filename of the VC runt
yp
e library used by Python,
Windows only: return the filename of the VC runt
im
e library used by Python,
and by the extension modules. If the name of the library cannot be
determined, ``None`` is returned.
...
...
@@ -2446,11 +2446,6 @@ other data types containing pointer type fields.
and so on). Later assignments to the :attr:`_fields_` class variable will
raise an AttributeError.
Structure and union subclass constructors accept both positional and named
arguments. Positional arguments are used to initialize the fields in the
same order as they appear in the :attr:`_fields_` definition, named
arguments are used to initialize the fields with the corresponding name.
It is possible to defined sub-subclasses of structure types, they inherit
the fields of the base class plus the :attr:`_fields_` defined in the
sub-subclass, if any.
...
...
Doc/library/pydoc.rst
View file @
50038013
...
...
@@ -22,6 +22,13 @@ The :mod:`pydoc` module automatically generates documentation from Python
modules. The documentation can be presented as pages of text on the console,
served to a Web browser, or saved to HTML files.
For modules, classes, functions and methods, the displayed documentation is
derived from the docstring (i.e. the :attr:`__doc__` attribute) of the object,
and recursively of its documentable members. If there is no docstring,
:mod:`pydoc` tries to obtain a description from the block of comment lines just
above the definition of the class, function or method in the source file, or at
the top of the module (see :func:`inspect.getcomments`).
The built-in function :func:`help` invokes the online help system in the
interactive interpreter, which uses :mod:`pydoc` to generate its documentation
as text on the console. The same text documentation can also be viewed from
...
...
Doc/library/tempfile.rst
View file @
50038013
...
...
@@ -185,7 +185,7 @@ The module defines the following user-callable functions:
>>> os.path.exists(f.name)
False
The module uses
two global variables
that tell it how to construct a
The module uses
a global variable
that tell it how to construct a
temporary name. They are initialized at the first call to any of the
functions above. The caller may change them, but this is discouraged; use
the appropriate function arguments, instead.
...
...
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