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
943277ec
Commit
943277ec
authored
Jul 17, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor corrections.
parent
e9a92aa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Doc/lib/libdoctest.tex
Doc/lib/libdoctest.tex
+7
-1
Doc/ref/ref3.tex
Doc/ref/ref3.tex
+1
-1
No files found.
Doc/lib/libdoctest.tex
View file @
943277ec
...
...
@@ -193,12 +193,15 @@ module docstring, and all function, class and method docstrings are
searched. Optionally, the tester can be directed to exclude
docstrings attached to objects with private names.
Objects imported into the module are not searched.
\versionchanged
[Previously, the tester defaulted to skipping objects
with private names (to obtain version independence, explicitly specify
\var
{
isprivate
}
when launching doctests)]
{
2.3
}
In addition, if
\code
{
M.
__
test
__}
exists and "is true", it must be a
dict, and each entry maps a (string) name to a function object, class
object, or string. Function and class object docstrings found from
\code
{
M.
__
test
__}
are searched even if the the tester has been
direct
ly
to skip over private names in the rest of the module.
direct
ed
to skip over private names in the rest of the module.
In output, a key
\code
{
K
}
in
\code
{
M.
__
test
__}
appears with name
\begin{verbatim}
...
...
@@ -312,6 +315,9 @@ are run.
\end{verbatim}
\versionadded
{
2.3
}
\warning
{
\function
{
DocTestSuite()
}
does not current search
\code
{
M.
__
test
__}
and its search technique does not exactly match
\function
{
testmod()
}
in
every detail. Future versions will bring the two into convergence.
}
\end{funcdesc}
...
...
Doc/ref/ref3.tex
View file @
943277ec
...
...
@@ -1150,7 +1150,7 @@ a Boolean value, else a \exception{TypeError} will be raised.
By convention,
\code
{
False
}
is used for false and
\code
{
True
}
for true.
There are no implied relationships among the comparison operators.
The truth of
{
\var
{
x
}
==
\var
{
y
}}
does not imply that
\code
{
\var
{
x
}
!=
\var
{
y
}}
The truth of
\code
{
\var
{
x
}
==
\var
{
y
}}
does not imply that
\code
{
\var
{
x
}
!=
\var
{
y
}}
is false. Accordingly, when defining
\method
{__
eq
__}
, one should also
define
\method
{__
ne
__}
so that the operators will behave as expected.
...
...
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