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
11e71d80
Commit
11e71d80
authored
Aug 21, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention explicitly the False is considered false.
parent
33d25318
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+3
-3
No files found.
Doc/ref/ref5.tex
View file @
11e71d80
...
...
@@ -1021,9 +1021,9 @@ Boolean operations have the lowest priority of all Python operations:
In the context of Boolean operations, and also when expressions are
used by control flow statements, the following values are interpreted
as false:
\code
{
None
}
, numeric zero of all types, empty sequences
(strings, tuples and lists), and empty mappings (dictionaries). All
other values are interpreted as true.
as false:
\code
{
False
}
,
\code
{
None
}
, numeric zero of all types, empty
sequences (strings, tuples and lists), and empty mappings (dictionaries).
All
other values are interpreted as true.
The operator
\keyword
{
not
}
yields
\code
{
True
}
if its argument is false,
\code
{
False
}
otherwise.
...
...
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