Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29cb21d

Browse files
authored
Regenerate topics file (GH-13642)
1 parent 8f96c9f commit 29cb21d

2 files changed

Lines changed: 67 additions & 53 deletions

File tree

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ A function definition defines a user-defined function object (see section
483483
decorators: `decorator`+
484484
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
485485
dotted_name: `identifier` ("." `identifier`)*
486-
parameter_list: `defparameter` ("," `defparameter`)* ',' '/' [',' [`parameter_list_no_posonly`]]
486+
parameter_list: `defparameter` ("," `defparameter`)* "," "/" ["," [`parameter_list_no_posonly`]]
487487
: | `parameter_list_no_posonly`
488488
parameter_list_no_posonly: `defparameter` ("," `defparameter`)* ["," [`parameter_list_starargs`]]
489489
: | `parameter_list_starargs`

Lib/pydoc_data/topics.py

Lines changed: 66 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Mon May 6 20:27:55 2019
2+
# Autogenerated by Sphinx on Wed May 29 01:18:52 2019
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -2044,21 +2044,21 @@
20442044
'exception is raised, it is as if "in" raised that '
20452045
'exception).\n'
20462046
'\n'
2047-
'The operator "not in" is defined to have the inverse true '
2047+
'The operator "not in" is defined to have the inverse truth '
20482048
'value of\n'
20492049
'"in".\n'
20502050
'\n'
20512051
'\n'
20522052
'Identity comparisons\n'
20532053
'====================\n'
20542054
'\n'
2055-
'The operators "is" and "is not" test for object identity: "x '
2056-
'is y" is\n'
2057-
'true if and only if *x* and *y* are the same object. Object '
2058-
'identity\n'
2059-
'is determined using the "id()" function. "x is not y" yields '
2060-
'the\n'
2061-
'inverse truth value. [4]\n',
2055+
'The operators "is" and "is not" test for an object’s '
2056+
'identity: "x is\n'
2057+
'y" is true if and only if *x* and *y* are the same object. '
2058+
'An\n'
2059+
'Object’s identity is determined using the "id()" function. '
2060+
'"x is not\n'
2061+
'y" yields the inverse truth value. [4]\n',
20622062
'compound': 'Compound statements\n'
20632063
'*******************\n'
20642064
'\n'
@@ -2558,22 +2558,25 @@
25582558
'(see\n'
25592559
'section The standard type hierarchy):\n'
25602560
'\n'
2561-
' funcdef ::= [decorators] "def" funcname "(" '
2561+
' funcdef ::= [decorators] "def" funcname "(" '
25622562
'[parameter_list] ")"\n'
25632563
' ["->" expression] ":" suite\n'
2564-
' decorators ::= decorator+\n'
2565-
' decorator ::= "@" dotted_name ["(" '
2564+
' decorators ::= decorator+\n'
2565+
' decorator ::= "@" dotted_name ["(" '
25662566
'[argument_list [","]] ")"] NEWLINE\n'
2567-
' dotted_name ::= identifier ("." identifier)*\n'
2568-
' parameter_list ::= defparameter ("," defparameter)* '
2569-
'["," [parameter_list_starargs]]\n'
2570-
' | parameter_list_starargs\n'
2571-
' parameter_list_starargs ::= "*" [parameter] ("," '
2567+
' dotted_name ::= identifier ("." identifier)*\n'
2568+
' parameter_list ::= defparameter ("," '
2569+
'defparameter)* "," "/" ["," [parameter_list_no_posonly]]\n'
2570+
' | parameter_list_no_posonly\n'
2571+
' parameter_list_no_posonly ::= defparameter ("," '
2572+
'defparameter)* ["," [parameter_list_starargs]]\n'
2573+
' | parameter_list_starargs\n'
2574+
' parameter_list_starargs ::= "*" [parameter] ("," '
25722575
'defparameter)* ["," ["**" parameter [","]]]\n'
25732576
' | "**" parameter [","]\n'
2574-
' parameter ::= identifier [":" expression]\n'
2575-
' defparameter ::= parameter ["=" expression]\n'
2576-
' funcname ::= identifier\n'
2577+
' parameter ::= identifier [":" expression]\n'
2578+
' defparameter ::= parameter ["=" expression]\n'
2579+
' funcname ::= identifier\n'
25772580
'\n'
25782581
'A function definition is an executable statement. Its execution '
25792582
'binds\n'
@@ -4363,7 +4366,7 @@
43634366
'terminates\n'
43644367
'execution of the program, or returns to its interactive main '
43654368
'loop. In\n'
4366-
'either case, it prints a stack backtrace, except when the '
4369+
'either case, it prints a stack traceback, except when the '
43674370
'exception is\n'
43684371
'"SystemExit".\n'
43694372
'\n'
@@ -4684,7 +4687,7 @@
46844687
'terminates\n'
46854688
'execution of the program, or returns to its interactive main '
46864689
'loop. In\n'
4687-
'either case, it prints a stack backtrace, except when the '
4690+
'either case, it prints a stack traceback, except when the '
46884691
'exception is\n'
46894692
'"SystemExit".\n'
46904693
'\n'
@@ -5078,7 +5081,7 @@
50785081
'Meaning '
50795082
'|\n'
50805083
' '
5081-
'+===========+============================================================+\n'
5084+
'|===========|============================================================|\n'
50825085
' | "\'<\'" | Forces the field to be left-aligned '
50835086
'within the available |\n'
50845087
' | | space (this is the default for most '
@@ -5127,7 +5130,7 @@
51275130
'Meaning '
51285131
'|\n'
51295132
' '
5130-
'+===========+============================================================+\n'
5133+
'|===========|============================================================|\n'
51315134
' | "\'+\'" | indicates that a sign should be used for '
51325135
'both positive as |\n'
51335136
' | | well as negative '
@@ -5231,7 +5234,7 @@
52315234
'Meaning '
52325235
'|\n'
52335236
' '
5234-
'+===========+============================================================+\n'
5237+
'|===========|============================================================|\n'
52355238
' | "\'s\'" | String format. This is the default type '
52365239
'for strings and |\n'
52375240
' | | may be '
@@ -5251,7 +5254,7 @@
52515254
'Meaning '
52525255
'|\n'
52535256
' '
5254-
'+===========+============================================================+\n'
5257+
'|===========|============================================================|\n'
52555258
' | "\'b\'" | Binary format. Outputs the number in '
52565259
'base 2. |\n'
52575260
' '
@@ -5313,7 +5316,7 @@
53135316
'Meaning '
53145317
'|\n'
53155318
' '
5316-
'+===========+============================================================+\n'
5319+
'|===========|============================================================|\n'
53175320
' | "\'e\'" | Exponent notation. Prints the number in '
53185321
'scientific |\n'
53195322
' | | notation using the letter ‘e’ to indicate '
@@ -5584,22 +5587,25 @@
55845587
'(see\n'
55855588
'section The standard type hierarchy):\n'
55865589
'\n'
5587-
' funcdef ::= [decorators] "def" funcname "(" '
5590+
' funcdef ::= [decorators] "def" funcname "(" '
55885591
'[parameter_list] ")"\n'
55895592
' ["->" expression] ":" suite\n'
5590-
' decorators ::= decorator+\n'
5591-
' decorator ::= "@" dotted_name ["(" '
5593+
' decorators ::= decorator+\n'
5594+
' decorator ::= "@" dotted_name ["(" '
55925595
'[argument_list [","]] ")"] NEWLINE\n'
5593-
' dotted_name ::= identifier ("." identifier)*\n'
5594-
' parameter_list ::= defparameter ("," defparameter)* '
5595-
'["," [parameter_list_starargs]]\n'
5596-
' | parameter_list_starargs\n'
5597-
' parameter_list_starargs ::= "*" [parameter] ("," '
5596+
' dotted_name ::= identifier ("." identifier)*\n'
5597+
' parameter_list ::= defparameter ("," '
5598+
'defparameter)* "," "/" ["," [parameter_list_no_posonly]]\n'
5599+
' | parameter_list_no_posonly\n'
5600+
' parameter_list_no_posonly ::= defparameter ("," '
5601+
'defparameter)* ["," [parameter_list_starargs]]\n'
5602+
' | parameter_list_starargs\n'
5603+
' parameter_list_starargs ::= "*" [parameter] ("," '
55985604
'defparameter)* ["," ["**" parameter [","]]]\n'
55995605
' | "**" parameter [","]\n'
5600-
' parameter ::= identifier [":" expression]\n'
5601-
' defparameter ::= parameter ["=" expression]\n'
5602-
' funcname ::= identifier\n'
5606+
' parameter ::= identifier [":" expression]\n'
5607+
' defparameter ::= parameter ["=" expression]\n'
5608+
' funcname ::= identifier\n'
56035609
'\n'
56045610
'A function definition is an executable statement. Its execution '
56055611
'binds\n'
@@ -6338,7 +6344,7 @@
63386344
'integer indices do not raise "IndexError" exception. (If any other\n'
63396345
'exception is raised, it is as if "in" raised that exception).\n'
63406346
'\n'
6341-
'The operator "not in" is defined to have the inverse true value of\n'
6347+
'The operator "not in" is defined to have the inverse truth value of\n'
63426348
'"in".\n',
63436349
'integers': 'Integer literals\n'
63446350
'****************\n'
@@ -7019,7 +7025,7 @@
70197025
'+-------------------------------------------------+---------------------------------------+\n'
70207026
'| Operator | '
70217027
'Description |\n'
7022-
'+=================================================+=======================================+\n'
7028+
'|=================================================|=======================================|\n'
70237029
'| "lambda" | '
70247030
'Lambda expression |\n'
70257031
'+-------------------------------------------------+---------------------------------------+\n'
@@ -10263,7 +10269,7 @@
1026310269
' | Representation | '
1026410270
'Description |\n'
1026510271
' '
10266-
'+=========================+===============================+\n'
10272+
'|=========================|===============================|\n'
1026710273
' | "\\n" | Line '
1026810274
'Feed |\n'
1026910275
' '
@@ -10602,7 +10608,7 @@
1060210608
'+-------------------+-----------------------------------+---------+\n'
1060310609
'| Escape Sequence | Meaning | Notes '
1060410610
'|\n'
10605-
'+===================+===================================+=========+\n'
10611+
'|===================|===================================|=========|\n'
1060610612
'| "\\newline" | Backslash and newline ignored '
1060710613
'| |\n'
1060810614
'+-------------------+-----------------------------------+---------+\n'
@@ -10648,7 +10654,7 @@
1064810654
'+-------------------+-----------------------------------+---------+\n'
1064910655
'| Escape Sequence | Meaning | Notes '
1065010656
'|\n'
10651-
'+===================+===================================+=========+\n'
10657+
'|===================|===================================|=========|\n'
1065210658
'| "\\N{name}" | Character named *name* in the | '
1065310659
'(4) |\n'
1065410660
'| | Unicode database | '
@@ -11286,7 +11292,7 @@
1128611292
' | Attribute | Meaning '
1128711293
'| |\n'
1128811294
' '
11289-
'+===========================+=================================+=============+\n'
11295+
'|===========================|=================================|=============|\n'
1129011296
' | "__doc__" | The function’s documentation '
1129111297
'| Writable |\n'
1129211298
' | | string, or "None" if '
@@ -12557,7 +12563,7 @@
1255712563
'+----------------------------+----------------------------------+------------+\n'
1255812564
'| Operation | Result '
1255912565
'| Notes |\n'
12560-
'+============================+==================================+============+\n'
12566+
'|============================|==================================|============|\n'
1256112567
'| "x in s" | "True" if an item of *s* is '
1256212568
'| (1) |\n'
1256312569
'| | equal to *x*, else "False" '
@@ -12786,7 +12792,7 @@
1278612792
'+--------------------------------+----------------------------------+-----------------------+\n'
1278712793
'| Operation | '
1278812794
'Result | Notes |\n'
12789-
'+================================+==================================+=======================+\n'
12795+
'|================================|==================================|=======================|\n'
1279012796
'| "s[i] = x" | item *i* of *s* is replaced '
1279112797
'by | |\n'
1279212798
'| | '
@@ -12872,7 +12878,7 @@
1287212878
'default\n'
1287312879
' the last item is removed and returned.\n'
1287412880
'\n'
12875-
'3. "remove" raises "ValueError" when *x* is not found in *s*.\n'
12881+
'3. "remove()" raises "ValueError" when *x* is not found in *s*.\n'
1287612882
'\n'
1287712883
'4. The "reverse()" method modifies the sequence in place for\n'
1287812884
' economy of space when reversing a large sequence. To remind '
@@ -12883,7 +12889,11 @@
1288312889
'\n'
1288412890
'5. "clear()" and "copy()" are included for consistency with the\n'
1288512891
' interfaces of mutable containers that don’t support slicing\n'
12886-
' operations (such as "dict" and "set")\n'
12892+
' operations (such as "dict" and "set"). "copy()" is not part '
12893+
'of the\n'
12894+
' "collections.abc.MutableSequence" ABC, but most concrete '
12895+
'mutable\n'
12896+
' sequence classes provide it.\n'
1288712897
'\n'
1288812898
' New in version 3.3: "clear()" and "copy()" methods.\n'
1288912899
'\n'
@@ -13244,7 +13254,7 @@
1324413254
'| Operation | '
1324513255
'Result | Notes '
1324613256
'|\n'
13247-
'+================================+==================================+=======================+\n'
13257+
'|================================|==================================|=======================|\n'
1324813258
'| "s[i] = x" | item *i* of *s* is '
1324913259
'replaced by | |\n'
1325013260
'| | '
@@ -13333,8 +13343,8 @@
1333313343
'by default\n'
1333413344
' the last item is removed and returned.\n'
1333513345
'\n'
13336-
'3. "remove" raises "ValueError" when *x* is not found in '
13337-
'*s*.\n'
13346+
'3. "remove()" raises "ValueError" when *x* is not found '
13347+
'in *s*.\n'
1333813348
'\n'
1333913349
'4. The "reverse()" method modifies the sequence in place '
1334013350
'for\n'
@@ -13348,7 +13358,11 @@
1334813358
'with the\n'
1334913359
' interfaces of mutable containers that don’t support '
1335013360
'slicing\n'
13351-
' operations (such as "dict" and "set")\n'
13361+
' operations (such as "dict" and "set"). "copy()" is '
13362+
'not part of the\n'
13363+
' "collections.abc.MutableSequence" ABC, but most '
13364+
'concrete mutable\n'
13365+
' sequence classes provide it.\n'
1335213366
'\n'
1335313367
' New in version 3.3: "clear()" and "copy()" methods.\n'
1335413368
'\n'

0 commit comments

Comments
 (0)