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
29cb21dd
Commit
29cb21dd
authored
May 29, 2019
by
Pablo Galindo
Committed by
GitHub
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate topics file (GH-13642)
parent
8f96c9f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
53 deletions
+67
-53
Doc/reference/compound_stmts.rst
Doc/reference/compound_stmts.rst
+1
-1
Lib/pydoc_data/topics.py
Lib/pydoc_data/topics.py
+66
-52
No files found.
Doc/reference/compound_stmts.rst
View file @
29cb21dd
...
...
@@ -483,7 +483,7 @@ A function definition defines a user-defined function object (see section
decorators: `decorator`+
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
dotted_name: `identifier` ("." `identifier`)*
parameter_list: `defparameter` ("," `defparameter`)*
',' '/' [','
[`parameter_list_no_posonly`]]
parameter_list: `defparameter` ("," `defparameter`)*
"," "/" [","
[`parameter_list_no_posonly`]]
: | `parameter_list_no_posonly`
parameter_list_no_posonly: `defparameter` ("," `defparameter`)* ["," [`parameter_list_starargs`]]
: | `parameter_list_starargs`
...
...
Lib/pydoc_data/topics.py
View file @
29cb21dd
# -*- coding: utf-8 -*-
# Autogenerated by Sphinx on
Mon May 6 20:27:55
2019
# Autogenerated by Sphinx on
Wed May 29 01:18:52
2019
topics
=
{
'assert'
:
'The "assert" statement
\
n
'
'**********************
\
n
'
'
\
n
'
...
...
@@ -2044,7 +2044,7 @@ topics = {'assert': 'The "assert" statement\n'
'exception is raised, it is as if "in" raised that '
'exception).
\
n
'
'
\
n
'
'The operator "not in" is defined to have the inverse tru
e
'
'The operator "not in" is defined to have the inverse tru
th
'
'value of
\
n
'
'"in".
\
n
'
'
\
n
'
...
...
@@ -2052,13 +2052,13 @@ topics = {'assert': 'The "assert" statement\n'
'Identity comparisons
\
n
'
'====================
\
n
'
'
\
n
'
'The operators "is" and "is not" test for
object identity: "x
'
'i
s y"
is
\
n
'
'
true if and only if *x* and *y* are the same object. Object
'
'
identity
\
n
'
'
is determined using the "id()" function. "x is not y" yields
'
'
the
\
n
'
'inverse truth value. [4]
\
n
'
,
'The operators "is" and "is not" test for
an object’s
'
'i
dentity: "x
is
\
n
'
'
y" is true if and only if *x* and *y* are the same object.
'
'
An
\
n
'
'
Object’s identity is determined using the "id()" function.
'
'
"x is not
\
n
'
'
y" yields the
inverse truth value. [4]
\
n
'
,
'compound'
:
'Compound statements
\
n
'
'*******************
\
n
'
'
\
n
'
...
...
@@ -2565,8 +2565,11 @@ topics = {'assert': 'The "assert" statement\n'
' decorator ::= "@" dotted_name ["(" '
'[argument_list [","]] ")"] NEWLINE
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' parameter_list ::= defparameter ("," defparameter)* '
'["," [parameter_list_starargs]]
\
n
'
' parameter_list ::= defparameter ("," '
'defparameter)* "," "/" ["," [parameter_list_no_posonly]]
\
n
'
' | parameter_list_no_posonly
\
n
'
' parameter_list_no_posonly ::= defparameter ("," '
'defparameter)* ["," [parameter_list_starargs]]
\
n
'
' | parameter_list_starargs
\
n
'
' parameter_list_starargs ::= "*" [parameter] ("," '
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
...
...
@@ -4363,7 +4366,7 @@ topics = {'assert': 'The "assert" statement\n'
'terminates
\
n
'
'execution of the program, or returns to its interactive main '
'loop. In
\
n
'
'either case, it prints a stack
backtrace
, except when the '
'either case, it prints a stack
traceback
, except when the '
'exception is
\
n
'
'"SystemExit".
\
n
'
'
\
n
'
...
...
@@ -4684,7 +4687,7 @@ topics = {'assert': 'The "assert" statement\n'
'terminates
\
n
'
'execution of the program, or returns to its interactive main '
'loop. In
\
n
'
'either case, it prints a stack
backtrace
, except when the '
'either case, it prints a stack
traceback
, except when the '
'exception is
\
n
'
'"SystemExit".
\
n
'
'
\
n
'
...
...
@@ -5078,7 +5081,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'|
\
n
'
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
<
\
'
" | Forces the field to be left-aligned '
'within the available |
\
n
'
' | | space (this is the default for most '
...
...
@@ -5127,7 +5130,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'|
\
n
'
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
+
\
'
" | indicates that a sign should be used for '
'both positive as |
\
n
'
' | | well as negative '
...
...
@@ -5231,7 +5234,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'|
\
n
'
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
s
\
'
" | String format. This is the default type '
'for strings and |
\
n
'
' | | may be '
...
...
@@ -5251,7 +5254,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'|
\
n
'
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
b
\
'
" | Binary format. Outputs the number in '
'base 2. |
\
n
'
' '
...
...
@@ -5313,7 +5316,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'|
\
n
'
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
e
\
'
" | Exponent notation. Prints the number in '
'scientific |
\
n
'
' | | notation using the letter ‘e’ to indicate '
...
...
@@ -5591,8 +5594,11 @@ topics = {'assert': 'The "assert" statement\n'
' decorator ::= "@" dotted_name ["(" '
'[argument_list [","]] ")"] NEWLINE
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' parameter_list ::= defparameter ("," defparameter)* '
'["," [parameter_list_starargs]]
\
n
'
' parameter_list ::= defparameter ("," '
'defparameter)* "," "/" ["," [parameter_list_no_posonly]]
\
n
'
' | parameter_list_no_posonly
\
n
'
' parameter_list_no_posonly ::= defparameter ("," '
'defparameter)* ["," [parameter_list_starargs]]
\
n
'
' | parameter_list_starargs
\
n
'
' parameter_list_starargs ::= "*" [parameter] ("," '
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
...
...
@@ -6338,7 +6344,7 @@ topics = {'assert': 'The "assert" statement\n'
'integer indices do not raise "IndexError" exception. (If any other
\
n
'
'exception is raised, it is as if "in" raised that exception).
\
n
'
'
\
n
'
'The operator "not in" is defined to have the inverse tru
e
value of
\
n
'
'The operator "not in" is defined to have the inverse tru
th
value of
\
n
'
'"in".
\
n
'
,
'integers'
:
'Integer literals
\
n
'
'****************
\
n
'
...
...
@@ -7019,7 +7025,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------------------------------------+---------------------------------------+
\
n
'
'| Operator | '
'Description |
\
n
'
'
+=================================================+=======================================+
\
n
'
'
|=================================================|=======================================|
\
n
'
'| "lambda" | '
'Lambda expression |
\
n
'
'+-------------------------------------------------+---------------------------------------+
\
n
'
...
...
@@ -10263,7 +10269,7 @@ topics = {'assert': 'The "assert" statement\n'
' | Representation | '
'Description |
\
n
'
' '
'
+=========================+===============================+
\
n
'
'
|=========================|===============================|
\
n
'
' | "
\
\
n" | Line '
'Feed |
\
n
'
' '
...
...
@@ -10602,7 +10608,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------+-----------------------------------+---------+
\
n
'
'| Escape Sequence | Meaning | Notes '
'|
\
n
'
'
+===================+===================================+=========+
\
n
'
'
|===================|===================================|=========|
\
n
'
'| "
\
\
newline" | Backslash and newline ignored '
'| |
\
n
'
'+-------------------+-----------------------------------+---------+
\
n
'
...
...
@@ -10648,7 +10654,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------+-----------------------------------+---------+
\
n
'
'| Escape Sequence | Meaning | Notes '
'|
\
n
'
'
+===================+===================================+=========+
\
n
'
'
|===================|===================================|=========|
\
n
'
'| "
\
\
N{name}" | Character named *name* in the | '
'(4) |
\
n
'
'| | Unicode database | '
...
...
@@ -11286,7 +11292,7 @@ topics = {'assert': 'The "assert" statement\n'
' | Attribute | Meaning '
'| |
\
n
'
' '
'
+===========================+=================================+=============+
\
n
'
'
|===========================|=================================|=============|
\
n
'
' | "__doc__" | The function’s documentation '
'| Writable |
\
n
'
' | | string, or "None" if '
...
...
@@ -12557,7 +12563,7 @@ topics = {'assert': 'The "assert" statement\n'
'+----------------------------+----------------------------------+------------+
\
n
'
'| Operation | Result '
'| Notes |
\
n
'
'
+============================+==================================+============+
\
n
'
'
|============================|==================================|============|
\
n
'
'| "x in s" | "True" if an item of *s* is '
'| (1) |
\
n
'
'| | equal to *x*, else "False" '
...
...
@@ -12786,7 +12792,7 @@ topics = {'assert': 'The "assert" statement\n'
'+--------------------------------+----------------------------------+-----------------------+
\
n
'
'| Operation | '
'Result | Notes |
\
n
'
'
+================================+==================================+=======================+
\
n
'
'
|================================|==================================|=======================|
\
n
'
'| "s[i] = x" | item *i* of *s* is replaced '
'by | |
\
n
'
'| | '
...
...
@@ -12872,7 +12878,7 @@ topics = {'assert': 'The "assert" statement\n'
'default
\
n
'
' the last item is removed and returned.
\
n
'
'
\
n
'
'3. "remove" raises "ValueError" when *x* is not found in *s*.
\
n
'
'3. "remove
()
" raises "ValueError" when *x* is not found in *s*.
\
n
'
'
\
n
'
'4. The "reverse()" method modifies the sequence in place for
\
n
'
' economy of space when reversing a large sequence. To remind '
...
...
@@ -12883,7 +12889,11 @@ topics = {'assert': 'The "assert" statement\n'
'
\
n
'
'5. "clear()" and "copy()" are included for consistency with the
\
n
'
' interfaces of mutable containers that don’t support slicing
\
n
'
' operations (such as "dict" and "set")
\
n
'
' operations (such as "dict" and "set"). "copy()" is not part '
'of the
\
n
'
' "collections.abc.MutableSequence" ABC, but most concrete '
'mutable
\
n
'
' sequence classes provide it.
\
n
'
'
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
'
\
n
'
...
...
@@ -13244,7 +13254,7 @@ topics = {'assert': 'The "assert" statement\n'
'| Operation | '
'Result | Notes '
'|
\
n
'
'
+================================+==================================+=======================+
\
n
'
'
|================================|==================================|=======================|
\
n
'
'| "s[i] = x" | item *i* of *s* is '
'replaced by | |
\
n
'
'| | '
...
...
@@ -13333,8 +13343,8 @@ topics = {'assert': 'The "assert" statement\n'
'by default
\
n
'
' the last item is removed and returned.
\
n
'
'
\
n
'
'3. "remove
" raises "ValueError" when *x* is not found in
'
'*s*.
\
n
'
'3. "remove
()" raises "ValueError" when *x* is not found
'
'
in
*s*.
\
n
'
'
\
n
'
'4. The "reverse()" method modifies the sequence in place '
'for
\
n
'
...
...
@@ -13348,7 +13358,11 @@ topics = {'assert': 'The "assert" statement\n'
'with the
\
n
'
' interfaces of mutable containers that don’t support '
'slicing
\
n
'
' operations (such as "dict" and "set")
\
n
'
' operations (such as "dict" and "set"). "copy()" is '
'not part of the
\
n
'
' "collections.abc.MutableSequence" ABC, but most '
'concrete mutable
\
n
'
' sequence classes provide it.
\
n
'
'
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
'
\
n
'
...
...
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