|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Wed Mar 16 11:26:55 2022 |
| 2 | +# Autogenerated by Sphinx on Wed Mar 23 20:11:40 2022 |
3 | 3 | topics = {'assert': 'The "assert" statement\n' |
4 | 4 | '**********************\n' |
5 | 5 | '\n' |
|
2418 | 2418 | 'resulting\n' |
2419 | 2419 | 'object is “compatible” with the exception. An object is ' |
2420 | 2420 | 'compatible\n' |
2421 | | - 'with an exception if it is the class or a base class of the ' |
2422 | | - 'exception\n' |
2423 | | - 'object, or a tuple containing an item that is the class or a ' |
| 2421 | + 'with an exception if the object is the class or a *non-virtual ' |
2424 | 2422 | 'base\n' |
2425 | | - 'class of the exception object.\n' |
| 2423 | + 'class* of the exception object, or a tuple containing an item ' |
| 2424 | + 'that is\n' |
| 2425 | + 'the class or a non-virtual base class of the exception object.\n' |
2426 | 2426 | '\n' |
2427 | 2427 | 'If no except clause matches the exception, the search for an ' |
2428 | 2428 | 'exception\n' |
|
4399 | 4399 | 'on members\n' |
4400 | 4400 | ' of hashed collections including "set", "frozenset", and ' |
4401 | 4401 | '"dict".\n' |
4402 | | - ' "__hash__()" should return an integer. The only required ' |
4403 | | - 'property\n' |
4404 | | - ' is that objects which compare equal have the same hash ' |
4405 | | - 'value; it is\n' |
4406 | | - ' advised to mix together the hash values of the ' |
4407 | | - 'components of the\n' |
4408 | | - ' object that also play a part in comparison of objects by ' |
4409 | | - 'packing\n' |
4410 | | - ' them into a tuple and hashing the tuple. Example:\n' |
| 4402 | + ' The "__hash__()" method should return an integer. The ' |
| 4403 | + 'only required\n' |
| 4404 | + ' property is that objects which compare equal have the ' |
| 4405 | + 'same hash\n' |
| 4406 | + ' value; it is advised to mix together the hash values of ' |
| 4407 | + 'the\n' |
| 4408 | + ' components of the object that also play a part in ' |
| 4409 | + 'comparison of\n' |
| 4410 | + ' objects by packing them into a tuple and hashing the ' |
| 4411 | + 'tuple.\n' |
| 4412 | + ' Example:\n' |
4411 | 4413 | '\n' |
4412 | 4414 | ' def __hash__(self):\n' |
4413 | 4415 | ' return hash((self.name, self.nick, self.color))\n' |
|
5391 | 5393 | 'clause is\n' |
5392 | 5394 | 'selected depending on the class of the instance: it must ' |
5393 | 5395 | 'reference the\n' |
5394 | | - 'class of the instance or a base class thereof. The instance ' |
5395 | | - 'can be\n' |
5396 | | - 'received by the handler and can carry additional information ' |
5397 | | - 'about the\n' |
5398 | | - 'exceptional condition.\n' |
| 5396 | + 'class of the instance or a *non-virtual base class* thereof. ' |
| 5397 | + 'The\n' |
| 5398 | + 'instance can be received by the handler and can carry ' |
| 5399 | + 'additional\n' |
| 5400 | + 'information about the exceptional condition.\n' |
5399 | 5401 | '\n' |
5400 | 5402 | 'Note:\n' |
5401 | 5403 | '\n' |
|
5730 | 5732 | 'clause is\n' |
5731 | 5733 | 'selected depending on the class of the instance: it must ' |
5732 | 5734 | 'reference the\n' |
5733 | | - 'class of the instance or a base class thereof. The instance ' |
5734 | | - 'can be\n' |
5735 | | - 'received by the handler and can carry additional information ' |
5736 | | - 'about the\n' |
5737 | | - 'exceptional condition.\n' |
| 5735 | + 'class of the instance or a *non-virtual base class* thereof. ' |
| 5736 | + 'The\n' |
| 5737 | + 'instance can be received by the handler and can carry ' |
| 5738 | + 'additional\n' |
| 5739 | + 'information about the exceptional condition.\n' |
5738 | 5740 | '\n' |
5739 | 5741 | 'Note:\n' |
5740 | 5742 | '\n' |
|
9303 | 9305 | 'on members\n' |
9304 | 9306 | ' of hashed collections including "set", "frozenset", and ' |
9305 | 9307 | '"dict".\n' |
9306 | | - ' "__hash__()" should return an integer. The only required ' |
9307 | | - 'property\n' |
9308 | | - ' is that objects which compare equal have the same hash ' |
9309 | | - 'value; it is\n' |
9310 | | - ' advised to mix together the hash values of the components ' |
9311 | | - 'of the\n' |
9312 | | - ' object that also play a part in comparison of objects by ' |
9313 | | - 'packing\n' |
9314 | | - ' them into a tuple and hashing the tuple. Example:\n' |
| 9308 | + ' The "__hash__()" method should return an integer. The ' |
| 9309 | + 'only required\n' |
| 9310 | + ' property is that objects which compare equal have the ' |
| 9311 | + 'same hash\n' |
| 9312 | + ' value; it is advised to mix together the hash values of ' |
| 9313 | + 'the\n' |
| 9314 | + ' components of the object that also play a part in ' |
| 9315 | + 'comparison of\n' |
| 9316 | + ' objects by packing them into a tuple and hashing the ' |
| 9317 | + 'tuple.\n' |
| 9318 | + ' Example:\n' |
9315 | 9319 | '\n' |
9316 | 9320 | ' def __hash__(self):\n' |
9317 | 9321 | ' return hash((self.name, self.nick, self.color))\n' |
@@ -12428,10 +12432,10 @@ |
12428 | 12432 | 'exception. For an except clause with an expression, that expression\n' |
12429 | 12433 | 'is evaluated, and the clause matches the exception if the resulting\n' |
12430 | 12434 | 'object is “compatible” with the exception. An object is compatible\n' |
12431 | | - 'with an exception if it is the class or a base class of the ' |
12432 | | - 'exception\n' |
12433 | | - 'object, or a tuple containing an item that is the class or a base\n' |
12434 | | - 'class of the exception object.\n' |
| 12435 | + 'with an exception if the object is the class or a *non-virtual base\n' |
| 12436 | + 'class* of the exception object, or a tuple containing an item that ' |
| 12437 | + 'is\n' |
| 12438 | + 'the class or a non-virtual base class of the exception object.\n' |
12435 | 12439 | '\n' |
12436 | 12440 | 'If no except clause matches the exception, the search for an ' |
12437 | 12441 | 'exception\n' |
|
0 commit comments