1
1
# -*- coding: utf-8 -*-
2
- # Autogenerated by Sphinx on Mon Oct 24 18:35:07 2022
2
+ # Autogenerated by Sphinx on Tue Dec 6 19:05:00 2022
3
3
topics = {'assert': 'The "assert" statement\n'
4
4
'**********************\n'
5
5
'\n'
358
358
'yield_expression)]\n'
359
359
'\n'
360
360
'The difference from normal Assignment statements is that only '
361
- 'single\n'
361
+ 'a single\n'
362
362
'target is allowed.\n'
363
363
'\n'
364
364
'For simple names as assignment targets, if in class or module '
408
408
'analysis\n'
409
409
' tools and IDEs.\n'
410
410
'\n'
411
- 'Changed in version 3.8: Now annotated assignments allow same\n'
412
- 'expressions in the right hand side as the regular '
413
- 'assignments.\n'
414
- 'Previously, some expressions (like un-parenthesized tuple '
415
- 'expressions)\n'
416
- 'caused a syntax error.\n',
411
+ 'Changed in version 3.8: Now annotated assignments allow the '
412
+ 'same\n'
413
+ 'expressions in the right hand side as regular assignments. '
414
+ 'Previously,\n'
415
+ 'some expressions (like un-parenthesized tuple expressions) '
416
+ 'caused a\n'
417
+ 'syntax error.\n',
417
418
'async': 'Coroutines\n'
418
419
'**********\n'
419
420
'\n'
2551
2552
'that\n'
2552
2553
'multiple "except*" clauses can execute, each handling part of '
2553
2554
'the\n'
2554
- 'exception group. Each clause executes once and handles an '
2555
- 'exception\n'
2556
- 'group of all matching exceptions. Each exception in the group '
2557
- 'is\n'
2558
- 'handled by at most one "except*" clause, the first that matches '
2559
- 'it.\n'
2555
+ 'exception group. Each clause executes at most once and handles '
2556
+ 'an\n'
2557
+ 'exception group of all matching exceptions. Each exception in '
2558
+ 'the\n'
2559
+ 'group is handled by at most one "except*" clause, the first '
2560
+ 'that\n'
2561
+ 'matches it.\n'
2560
2562
'\n'
2561
2563
' >>> try:\n'
2562
2564
' ... raise ExceptionGroup("eg",\n'
2579
2581
' | ValueError: 1\n'
2580
2582
' +------------------------------------\n'
2581
2583
'\n'
2582
- ' Any remaining exceptions that were not handled by any '
2583
- ':keyword:`!except*`\n'
2584
- ' clause are re-raised at the end, combined into an exception '
2585
- 'group along with\n'
2586
- ' all exceptions that were raised from within '
2587
- ':keyword:`!except*` clauses.\n'
2584
+ 'Any remaining exceptions that were not handled by any "except*" '
2585
+ 'clause\n'
2586
+ 'are re-raised at the end, combined into an exception group along '
2587
+ 'with\n'
2588
+ 'all exceptions that were raised from within "except*" clauses.\n'
2589
+ '\n'
2590
+ 'If the raised exception is not an exception group and its type '
2591
+ 'matches\n'
2592
+ 'one of the "except*" clauses, it is caught and wrapped by an '
2593
+ 'exception\n'
2594
+ 'group with an empty message string.\n'
2595
+ '\n'
2596
+ ' >>> try:\n'
2597
+ ' ... raise BlockingIOError\n'
2598
+ ' ... except* BlockingIOError as e:\n'
2599
+ ' ... print(repr(e))\n'
2600
+ ' ...\n'
2601
+ " ExceptionGroup('', (BlockingIOError()))\n"
2588
2602
'\n'
2589
- ' An :keyword:`!except*` clause must have a matching type,\n'
2590
- ' and this type cannot be a subclass of '
2591
- ':exc:`BaseExceptionGroup`.\n'
2592
- ' It is not possible to mix :keyword:`except` and '
2593
- ':keyword:`!except*`\n'
2594
- ' in the same :keyword:`try`.\n'
2595
- ' :keyword:`break`, :keyword:`continue` and :keyword:`return`\n'
2596
- ' cannot appear in an :keyword:`!except*` clause.\n'
2603
+ 'An "except*" clause must have a matching type, and this type '
2604
+ 'cannot be\n'
2605
+ 'a subclass of "BaseExceptionGroup". It is not possible to mix '
2606
+ '"except"\n'
2607
+ 'and "except*" in the same "try". "break", "continue" and '
2608
+ '"return"\n'
2609
+ 'cannot appear in an "except*" clause.\n'
2597
2610
'\n'
2598
2611
'\n'
2599
2612
'"else" clause\n'
7308
7321
'the clauses had been separated out into individual import '
7309
7322
'statements.\n'
7310
7323
'\n'
7311
- 'The details of the first step, finding and loading modules are\n'
7324
+ 'The details of the first step, finding and loading modules, are\n'
7312
7325
'described in greater detail in the section on the import system, '
7313
7326
'which\n'
7314
7327
'also describes the various types of packages and modules that can '
11096
11109
'y)" is\n'
11097
11110
'typically invalid without special support in "MyClass". To '
11098
11111
'be able to\n'
11099
- 'use that kind of patterns, the class needs to define a\n'
11100
- '*__match_args__* attribute.\n'
11112
+ 'use that kind of pattern, the class needs to define a '
11113
+ '*__match_args__*\n'
11114
+ 'attribute.\n'
11101
11115
'\n'
11102
11116
'object.__match_args__\n'
11103
11117
'\n'
11302
11316
'*start* and\n'
11303
11317
' *end* are interpreted as in slice notation.\n'
11304
11318
'\n'
11319
+ ' If *sub* is empty, returns the number of empty strings '
11320
+ 'between\n'
11321
+ ' characters which is the length of the string plus one.\n'
11322
+ '\n'
11305
11323
"str.encode(encoding='utf-8', errors='strict')\n"
11306
11324
'\n'
11307
11325
' Return an encoded version of the string as a bytes '
11808
11826
'followed by\n'
11809
11827
' the string itself.\n'
11810
11828
'\n'
11811
- 'str.rsplit(sep=None, maxsplit=- 1)\n'
11829
+ 'str.rsplit(sep=None, maxsplit=-1)\n'
11812
11830
'\n'
11813
11831
' Return a list of the words in the string, using *sep* '
11814
11832
'as the\n'
11849
11867
" >>> 'Monty Python'.removesuffix(' Python')\n"
11850
11868
" 'Monty'\n"
11851
11869
'\n'
11852
- 'str.split(sep=None, maxsplit=- 1)\n'
11870
+ 'str.split(sep=None, maxsplit=-1)\n'
11853
11871
'\n'
11854
11872
' Return a list of the words in the string, using *sep* '
11855
11873
'as the\n'
12650
12668
'the type matches some of the exceptions in the group. This means '
12651
12669
'that\n'
12652
12670
'multiple "except*" clauses can execute, each handling part of the\n'
12653
- 'exception group. Each clause executes once and handles an exception\n'
12654
- 'group of all matching exceptions. Each exception in the group is\n'
12655
- 'handled by at most one "except*" clause, the first that matches it.\n'
12671
+ 'exception group. Each clause executes at most once and handles an\n'
12672
+ 'exception group of all matching exceptions. Each exception in the\n'
12673
+ 'group is handled by at most one "except*" clause, the first that\n'
12674
+ 'matches it.\n'
12656
12675
'\n'
12657
12676
' >>> try:\n'
12658
12677
' ... raise ExceptionGroup("eg",\n'
@@ -12673,20 +12692,31 @@
12673
12692
' | ValueError: 1\n'
12674
12693
' +------------------------------------\n'
12675
12694
'\n'
12676
- ' Any remaining exceptions that were not handled by any '
12677
- ':keyword:`!except*`\n'
12678
- ' clause are re-raised at the end, combined into an exception group '
12679
- 'along with\n'
12680
- ' all exceptions that were raised from within :keyword:`!except*` '
12681
- 'clauses.\n'
12695
+ 'Any remaining exceptions that were not handled by any "except*" '
12696
+ 'clause\n'
12697
+ 'are re-raised at the end, combined into an exception group along '
12698
+ 'with\n'
12699
+ 'all exceptions that were raised from within "except*" clauses.\n'
12682
12700
'\n'
12683
- ' An :keyword:`!except*` clause must have a matching type,\n'
12684
- ' and this type cannot be a subclass of :exc:`BaseExceptionGroup`.\n'
12685
- ' It is not possible to mix :keyword:`except` and '
12686
- ':keyword:`!except*`\n'
12687
- ' in the same :keyword:`try`.\n'
12688
- ' :keyword:`break`, :keyword:`continue` and :keyword:`return`\n'
12689
- ' cannot appear in an :keyword:`!except*` clause.\n'
12701
+ 'If the raised exception is not an exception group and its type '
12702
+ 'matches\n'
12703
+ 'one of the "except*" clauses, it is caught and wrapped by an '
12704
+ 'exception\n'
12705
+ 'group with an empty message string.\n'
12706
+ '\n'
12707
+ ' >>> try:\n'
12708
+ ' ... raise BlockingIOError\n'
12709
+ ' ... except* BlockingIOError as e:\n'
12710
+ ' ... print(repr(e))\n'
12711
+ ' ...\n'
12712
+ " ExceptionGroup('', (BlockingIOError()))\n"
12713
+ '\n'
12714
+ 'An "except*" clause must have a matching type, and this type cannot '
12715
+ 'be\n'
12716
+ 'a subclass of "BaseExceptionGroup". It is not possible to mix '
12717
+ '"except"\n'
12718
+ 'and "except*" in the same "try". "break", "continue" and "return"\n'
12719
+ 'cannot appear in an "except*" clause.\n'
12690
12720
'\n'
12691
12721
'\n'
12692
12722
'"else" clause\n'
@@ -13947,17 +13977,11 @@
13947
13977
'dictionaries or\n'
13948
13978
'other mutable types (that are compared by value rather than '
13949
13979
'by object\n'
13950
- 'identity) may not be used as keys. Numeric types used for '
13951
- 'keys obey\n'
13952
- 'the normal rules for numeric comparison: if two numbers '
13953
- 'compare equal\n'
13954
- '(such as "1" and "1.0") then they can be used '
13955
- 'interchangeably to index\n'
13956
- 'the same dictionary entry. (Note however, that since '
13957
- 'computers store\n'
13958
- 'floating-point numbers as approximations it is usually '
13959
- 'unwise to use\n'
13960
- 'them as dictionary keys.)\n'
13980
+ 'identity) may not be used as keys. Values that compare equal '
13981
+ '(such as\n'
13982
+ '"1", "1.0", and "True") can be used interchangeably to index '
13983
+ 'the same\n'
13984
+ 'dictionary entry.\n'
13961
13985
'\n'
13962
13986
'class dict(**kwargs)\n'
13963
13987
'class dict(mapping, **kwargs)\n'
0 commit comments