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
...
@@ -483,7 +483,7 @@ A function definition defines a user-defined function object (see section
decorators: `decorator`+
decorators: `decorator`+
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
dotted_name: `identifier` ("." `identifier`)*
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`
parameter_list_no_posonly: `defparameter` ("," `defparameter`)* ["," [`parameter_list_starargs`]]
parameter_list_no_posonly: `defparameter` ("," `defparameter`)* ["," [`parameter_list_starargs`]]
: | `parameter_list_starargs`
: | `parameter_list_starargs`
...
...
Lib/pydoc_data/topics.py
View file @
29cb21dd
# -*- coding: utf-8 -*-
# -*- 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
'
topics
=
{
'assert'
:
'The "assert" statement
\
n
'
'**********************
\
n
'
'**********************
\
n
'
'
\
n
'
'
\
n
'
...
@@ -2044,7 +2044,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -2044,7 +2044,7 @@ topics = {'assert': 'The "assert" statement\n'
'exception is raised, it is as if "in" raised that '
'exception is raised, it is as if "in" raised that '
'exception).
\
n
'
'exception).
\
n
'
'
\
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
'
'value of
\
n
'
'"in".
\
n
'
'"in".
\
n
'
'
\
n
'
'
\
n
'
...
@@ -2052,13 +2052,13 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -2052,13 +2052,13 @@ topics = {'assert': 'The "assert" statement\n'
'Identity comparisons
\
n
'
'Identity comparisons
\
n
'
'====================
\
n
'
'====================
\
n
'
'
\
n
'
'
\
n
'
'The operators "is" and "is not" test for
object identity: "x
'
'The operators "is" and "is not" test for
an object’s
'
'i
s y"
is
\
n
'
'i
dentity: "x
is
\
n
'
'
true if and only if *x* and *y* are the same object. Object
'
'
y" is true if and only if *x* and *y* are the same object.
'
'
identity
\
n
'
'
An
\
n
'
'
is determined using the "id()" function. "x is not y" yields
'
'
Object’s identity is determined using the "id()" function.
'
'
the
\
n
'
'
"x is not
\
n
'
'inverse truth value. [4]
\
n
'
,
'
y" yields the
inverse truth value. [4]
\
n
'
,
'compound'
:
'Compound statements
\
n
'
'compound'
:
'Compound statements
\
n
'
'*******************
\
n
'
'*******************
\
n
'
'
\
n
'
'
\
n
'
...
@@ -2565,8 +2565,11 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -2565,8 +2565,11 @@ topics = {'assert': 'The "assert" statement\n'
' decorator ::= "@" dotted_name ["(" '
' decorator ::= "@" dotted_name ["(" '
'[argument_list [","]] ")"] NEWLINE
\
n
'
'[argument_list [","]] ")"] NEWLINE
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' parameter_list ::= defparameter ("," defparameter)* '
' parameter_list ::= defparameter ("," '
'["," [parameter_list_starargs]]
\
n
'
'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
\
n
'
' parameter_list_starargs ::= "*" [parameter] ("," '
' parameter_list_starargs ::= "*" [parameter] ("," '
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
...
@@ -4363,7 +4366,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -4363,7 +4366,7 @@ topics = {'assert': 'The "assert" statement\n'
'terminates
\
n
'
'terminates
\
n
'
'execution of the program, or returns to its interactive main '
'execution of the program, or returns to its interactive main '
'loop. In
\
n
'
'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
'
'exception is
\
n
'
'"SystemExit".
\
n
'
'"SystemExit".
\
n
'
'
\
n
'
'
\
n
'
...
@@ -4684,7 +4687,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -4684,7 +4687,7 @@ topics = {'assert': 'The "assert" statement\n'
'terminates
\
n
'
'terminates
\
n
'
'execution of the program, or returns to its interactive main '
'execution of the program, or returns to its interactive main '
'loop. In
\
n
'
'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
'
'exception is
\
n
'
'"SystemExit".
\
n
'
'"SystemExit".
\
n
'
'
\
n
'
'
\
n
'
...
@@ -5078,7 +5081,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5078,7 +5081,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'Meaning '
'|
\
n
'
'|
\
n
'
' '
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
<
\
'
" | Forces the field to be left-aligned '
' | "
\
'
<
\
'
" | Forces the field to be left-aligned '
'within the available |
\
n
'
'within the available |
\
n
'
' | | space (this is the default for most '
' | | space (this is the default for most '
...
@@ -5127,7 +5130,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5127,7 +5130,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'Meaning '
'|
\
n
'
'|
\
n
'
' '
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
+
\
'
" | indicates that a sign should be used for '
' | "
\
'
+
\
'
" | indicates that a sign should be used for '
'both positive as |
\
n
'
'both positive as |
\
n
'
' | | well as negative '
' | | well as negative '
...
@@ -5231,7 +5234,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5231,7 +5234,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'Meaning '
'|
\
n
'
'|
\
n
'
' '
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
s
\
'
" | String format. This is the default type '
' | "
\
'
s
\
'
" | String format. This is the default type '
'for strings and |
\
n
'
'for strings and |
\
n
'
' | | may be '
' | | may be '
...
@@ -5251,7 +5254,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5251,7 +5254,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'Meaning '
'|
\
n
'
'|
\
n
'
' '
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
b
\
'
" | Binary format. Outputs the number in '
' | "
\
'
b
\
'
" | Binary format. Outputs the number in '
'base 2. |
\
n
'
'base 2. |
\
n
'
' '
' '
...
@@ -5313,7 +5316,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5313,7 +5316,7 @@ topics = {'assert': 'The "assert" statement\n'
'Meaning '
'Meaning '
'|
\
n
'
'|
\
n
'
' '
' '
'
+===========+============================================================+
\
n
'
'
|===========|============================================================|
\
n
'
' | "
\
'
e
\
'
" | Exponent notation. Prints the number in '
' | "
\
'
e
\
'
" | Exponent notation. Prints the number in '
'scientific |
\
n
'
'scientific |
\
n
'
' | | notation using the letter ‘e’ to indicate '
' | | notation using the letter ‘e’ to indicate '
...
@@ -5591,8 +5594,11 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -5591,8 +5594,11 @@ topics = {'assert': 'The "assert" statement\n'
' decorator ::= "@" dotted_name ["(" '
' decorator ::= "@" dotted_name ["(" '
'[argument_list [","]] ")"] NEWLINE
\
n
'
'[argument_list [","]] ")"] NEWLINE
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' dotted_name ::= identifier ("." identifier)*
\
n
'
' parameter_list ::= defparameter ("," defparameter)* '
' parameter_list ::= defparameter ("," '
'["," [parameter_list_starargs]]
\
n
'
'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
\
n
'
' parameter_list_starargs ::= "*" [parameter] ("," '
' parameter_list_starargs ::= "*" [parameter] ("," '
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
'defparameter)* ["," ["**" parameter [","]]]
\
n
'
...
@@ -6338,7 +6344,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -6338,7 +6344,7 @@ topics = {'assert': 'The "assert" statement\n'
'integer indices do not raise "IndexError" exception. (If any other
\
n
'
'integer indices do not raise "IndexError" exception. (If any other
\
n
'
'exception is raised, it is as if "in" raised that exception).
\
n
'
'exception is raised, it is as if "in" raised that exception).
\
n
'
'
\
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
'
,
'"in".
\
n
'
,
'integers'
:
'Integer literals
\
n
'
'integers'
:
'Integer literals
\
n
'
'****************
\
n
'
'****************
\
n
'
...
@@ -7019,7 +7025,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -7019,7 +7025,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------------------------------------+---------------------------------------+
\
n
'
'+-------------------------------------------------+---------------------------------------+
\
n
'
'| Operator | '
'| Operator | '
'Description |
\
n
'
'Description |
\
n
'
'
+=================================================+=======================================+
\
n
'
'
|=================================================|=======================================|
\
n
'
'| "lambda" | '
'| "lambda" | '
'Lambda expression |
\
n
'
'Lambda expression |
\
n
'
'+-------------------------------------------------+---------------------------------------+
\
n
'
'+-------------------------------------------------+---------------------------------------+
\
n
'
...
@@ -10263,7 +10269,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -10263,7 +10269,7 @@ topics = {'assert': 'The "assert" statement\n'
' | Representation | '
' | Representation | '
'Description |
\
n
'
'Description |
\
n
'
' '
' '
'
+=========================+===============================+
\
n
'
'
|=========================|===============================|
\
n
'
' | "
\
\
n" | Line '
' | "
\
\
n" | Line '
'Feed |
\
n
'
'Feed |
\
n
'
' '
' '
...
@@ -10602,7 +10608,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -10602,7 +10608,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------+-----------------------------------+---------+
\
n
'
'+-------------------+-----------------------------------+---------+
\
n
'
'| Escape Sequence | Meaning | Notes '
'| Escape Sequence | Meaning | Notes '
'|
\
n
'
'|
\
n
'
'
+===================+===================================+=========+
\
n
'
'
|===================|===================================|=========|
\
n
'
'| "
\
\
newline" | Backslash and newline ignored '
'| "
\
\
newline" | Backslash and newline ignored '
'| |
\
n
'
'| |
\
n
'
'+-------------------+-----------------------------------+---------+
\
n
'
'+-------------------+-----------------------------------+---------+
\
n
'
...
@@ -10648,7 +10654,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -10648,7 +10654,7 @@ topics = {'assert': 'The "assert" statement\n'
'+-------------------+-----------------------------------+---------+
\
n
'
'+-------------------+-----------------------------------+---------+
\
n
'
'| Escape Sequence | Meaning | Notes '
'| Escape Sequence | Meaning | Notes '
'|
\
n
'
'|
\
n
'
'
+===================+===================================+=========+
\
n
'
'
|===================|===================================|=========|
\
n
'
'| "
\
\
N{name}" | Character named *name* in the | '
'| "
\
\
N{name}" | Character named *name* in the | '
'(4) |
\
n
'
'(4) |
\
n
'
'| | Unicode database | '
'| | Unicode database | '
...
@@ -11286,7 +11292,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -11286,7 +11292,7 @@ topics = {'assert': 'The "assert" statement\n'
' | Attribute | Meaning '
' | Attribute | Meaning '
'| |
\
n
'
'| |
\
n
'
' '
' '
'
+===========================+=================================+=============+
\
n
'
'
|===========================|=================================|=============|
\
n
'
' | "__doc__" | The function’s documentation '
' | "__doc__" | The function’s documentation '
'| Writable |
\
n
'
'| Writable |
\
n
'
' | | string, or "None" if '
' | | string, or "None" if '
...
@@ -12557,7 +12563,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -12557,7 +12563,7 @@ topics = {'assert': 'The "assert" statement\n'
'+----------------------------+----------------------------------+------------+
\
n
'
'+----------------------------+----------------------------------+------------+
\
n
'
'| Operation | Result '
'| Operation | Result '
'| Notes |
\
n
'
'| Notes |
\
n
'
'
+============================+==================================+============+
\
n
'
'
|============================|==================================|============|
\
n
'
'| "x in s" | "True" if an item of *s* is '
'| "x in s" | "True" if an item of *s* is '
'| (1) |
\
n
'
'| (1) |
\
n
'
'| | equal to *x*, else "False" '
'| | equal to *x*, else "False" '
...
@@ -12786,7 +12792,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -12786,7 +12792,7 @@ topics = {'assert': 'The "assert" statement\n'
'+--------------------------------+----------------------------------+-----------------------+
\
n
'
'+--------------------------------+----------------------------------+-----------------------+
\
n
'
'| Operation | '
'| Operation | '
'Result | Notes |
\
n
'
'Result | Notes |
\
n
'
'
+================================+==================================+=======================+
\
n
'
'
|================================|==================================|=======================|
\
n
'
'| "s[i] = x" | item *i* of *s* is replaced '
'| "s[i] = x" | item *i* of *s* is replaced '
'by | |
\
n
'
'by | |
\
n
'
'| | '
'| | '
...
@@ -12872,7 +12878,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -12872,7 +12878,7 @@ topics = {'assert': 'The "assert" statement\n'
'default
\
n
'
'default
\
n
'
' the last item is removed and returned.
\
n
'
' the last item is removed and returned.
\
n
'
'
\
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
'
'
\
n
'
'4. The "reverse()" method modifies the sequence in place for
\
n
'
'4. The "reverse()" method modifies the sequence in place for
\
n
'
' economy of space when reversing a large sequence. To remind '
' economy of space when reversing a large sequence. To remind '
...
@@ -12883,7 +12889,11 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -12883,7 +12889,11 @@ topics = {'assert': 'The "assert" statement\n'
'
\
n
'
'
\
n
'
'5. "clear()" and "copy()" are included for consistency with the
\
n
'
'5. "clear()" and "copy()" are included for consistency with the
\
n
'
' interfaces of mutable containers that don’t support slicing
\
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
'
'
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
'
\
n
'
'
\
n
'
...
@@ -13244,7 +13254,7 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -13244,7 +13254,7 @@ topics = {'assert': 'The "assert" statement\n'
'| Operation | '
'| Operation | '
'Result | Notes '
'Result | Notes '
'|
\
n
'
'|
\
n
'
'
+================================+==================================+=======================+
\
n
'
'
|================================|==================================|=======================|
\
n
'
'| "s[i] = x" | item *i* of *s* is '
'| "s[i] = x" | item *i* of *s* is '
'replaced by | |
\
n
'
'replaced by | |
\
n
'
'| | '
'| | '
...
@@ -13333,8 +13343,8 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -13333,8 +13343,8 @@ topics = {'assert': 'The "assert" statement\n'
'by default
\
n
'
'by default
\
n
'
' the last item is removed and returned.
\
n
'
' the last item is removed and returned.
\
n
'
'
\
n
'
'
\
n
'
'3. "remove
" raises "ValueError" when *x* is not found in
'
'3. "remove
()" raises "ValueError" when *x* is not found
'
'*s*.
\
n
'
'
in
*s*.
\
n
'
'
\
n
'
'
\
n
'
'4. The "reverse()" method modifies the sequence in place '
'4. The "reverse()" method modifies the sequence in place '
'for
\
n
'
'for
\
n
'
...
@@ -13348,7 +13358,11 @@ topics = {'assert': 'The "assert" statement\n'
...
@@ -13348,7 +13358,11 @@ topics = {'assert': 'The "assert" statement\n'
'with the
\
n
'
'with the
\
n
'
' interfaces of mutable containers that don’t support '
' interfaces of mutable containers that don’t support '
'slicing
\
n
'
'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
'
'
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
' New in version 3.3: "clear()" and "copy()" methods.
\
n
'
'
\
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