|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Tue Mar 15 21:44:32 2022 |
| 2 | +# Autogenerated by Sphinx on Wed Mar 23 22:08:02 2022 |
3 | 3 | topics = {'assert': 'The "assert" statement\n' |
4 | 4 | '**********************\n' |
5 | 5 | '\n' |
|
2416 | 2416 | 'resulting\n' |
2417 | 2417 | 'object is “compatible” with the exception. An object is ' |
2418 | 2418 | 'compatible\n' |
2419 | | - 'with an exception if it is the class or a base class of the ' |
2420 | | - 'exception\n' |
2421 | | - 'object, or a tuple containing an item that is the class or a ' |
| 2419 | + 'with an exception if the object is the class or a *non-virtual ' |
2422 | 2420 | 'base\n' |
2423 | | - 'class of the exception object.\n' |
| 2421 | + 'class* of the exception object, or a tuple containing an item ' |
| 2422 | + 'that is\n' |
| 2423 | + 'the class or a non-virtual base class of the exception object.\n' |
2424 | 2424 | '\n' |
2425 | 2425 | 'If no except clause matches the exception, the search for an ' |
2426 | 2426 | 'exception\n' |
|
3567 | 3567 | 'on members\n' |
3568 | 3568 | ' of hashed collections including "set", "frozenset", and ' |
3569 | 3569 | '"dict".\n' |
3570 | | - ' "__hash__()" should return an integer. The only required ' |
3571 | | - 'property\n' |
3572 | | - ' is that objects which compare equal have the same hash ' |
3573 | | - 'value; it is\n' |
3574 | | - ' advised to mix together the hash values of the ' |
3575 | | - 'components of the\n' |
3576 | | - ' object that also play a part in comparison of objects by ' |
3577 | | - 'packing\n' |
3578 | | - ' them into a tuple and hashing the tuple. Example:\n' |
| 3570 | + ' The "__hash__()" method should return an integer. The ' |
| 3571 | + 'only required\n' |
| 3572 | + ' property is that objects which compare equal have the ' |
| 3573 | + 'same hash\n' |
| 3574 | + ' value; it is advised to mix together the hash values of ' |
| 3575 | + 'the\n' |
| 3576 | + ' components of the object that also play a part in ' |
| 3577 | + 'comparison of\n' |
| 3578 | + ' objects by packing them into a tuple and hashing the ' |
| 3579 | + 'tuple.\n' |
| 3580 | + ' Example:\n' |
3579 | 3581 | '\n' |
3580 | 3582 | ' def __hash__(self):\n' |
3581 | 3583 | ' return hash((self.name, self.nick, self.color))\n' |
|
4559 | 4561 | 'clause is\n' |
4560 | 4562 | 'selected depending on the class of the instance: it must ' |
4561 | 4563 | 'reference the\n' |
4562 | | - 'class of the instance or a base class thereof. The instance ' |
4563 | | - 'can be\n' |
4564 | | - 'received by the handler and can carry additional information ' |
4565 | | - 'about the\n' |
4566 | | - 'exceptional condition.\n' |
| 4564 | + 'class of the instance or a *non-virtual base class* thereof. ' |
| 4565 | + 'The\n' |
| 4566 | + 'instance can be received by the handler and can carry ' |
| 4567 | + 'additional\n' |
| 4568 | + 'information about the exceptional condition.\n' |
4567 | 4569 | '\n' |
4568 | 4570 | 'Note:\n' |
4569 | 4571 | '\n' |
|
4886 | 4888 | 'clause is\n' |
4887 | 4889 | 'selected depending on the class of the instance: it must ' |
4888 | 4890 | 'reference the\n' |
4889 | | - 'class of the instance or a base class thereof. The instance ' |
4890 | | - 'can be\n' |
4891 | | - 'received by the handler and can carry additional information ' |
4892 | | - 'about the\n' |
4893 | | - 'exceptional condition.\n' |
| 4891 | + 'class of the instance or a *non-virtual base class* thereof. ' |
| 4892 | + 'The\n' |
| 4893 | + 'instance can be received by the handler and can carry ' |
| 4894 | + 'additional\n' |
| 4895 | + 'information about the exceptional condition.\n' |
4894 | 4896 | '\n' |
4895 | 4897 | 'Note:\n' |
4896 | 4898 | '\n' |
|
8440 | 8442 | 'on members\n' |
8441 | 8443 | ' of hashed collections including "set", "frozenset", and ' |
8442 | 8444 | '"dict".\n' |
8443 | | - ' "__hash__()" should return an integer. The only required ' |
8444 | | - 'property\n' |
8445 | | - ' is that objects which compare equal have the same hash ' |
8446 | | - 'value; it is\n' |
8447 | | - ' advised to mix together the hash values of the components ' |
8448 | | - 'of the\n' |
8449 | | - ' object that also play a part in comparison of objects by ' |
8450 | | - 'packing\n' |
8451 | | - ' them into a tuple and hashing the tuple. Example:\n' |
| 8445 | + ' The "__hash__()" method should return an integer. The ' |
| 8446 | + 'only required\n' |
| 8447 | + ' property is that objects which compare equal have the ' |
| 8448 | + 'same hash\n' |
| 8449 | + ' value; it is advised to mix together the hash values of ' |
| 8450 | + 'the\n' |
| 8451 | + ' components of the object that also play a part in ' |
| 8452 | + 'comparison of\n' |
| 8453 | + ' objects by packing them into a tuple and hashing the ' |
| 8454 | + 'tuple.\n' |
| 8455 | + ' Example:\n' |
8452 | 8456 | '\n' |
8453 | 8457 | ' def __hash__(self):\n' |
8454 | 8458 | ' return hash((self.name, self.nick, self.color))\n' |
@@ -11531,10 +11535,10 @@ |
11531 | 11535 | 'exception. For an except clause with an expression, that expression\n' |
11532 | 11536 | 'is evaluated, and the clause matches the exception if the resulting\n' |
11533 | 11537 | 'object is “compatible” with the exception. An object is compatible\n' |
11534 | | - 'with an exception if it is the class or a base class of the ' |
11535 | | - 'exception\n' |
11536 | | - 'object, or a tuple containing an item that is the class or a base\n' |
11537 | | - 'class of the exception object.\n' |
| 11538 | + 'with an exception if the object is the class or a *non-virtual base\n' |
| 11539 | + 'class* of the exception object, or a tuple containing an item that ' |
| 11540 | + 'is\n' |
| 11541 | + 'the class or a non-virtual base class of the exception object.\n' |
11538 | 11542 | '\n' |
11539 | 11543 | 'If no except clause matches the exception, the search for an ' |
11540 | 11544 | 'exception\n' |
|
0 commit comments