mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Python 3.9.12
This commit is contained in:
parent
ec3589f59d
commit
b28265d7e6
17 changed files with 181 additions and 74 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Tue Mar 15 21:44:32 2022
|
||||
# Autogenerated by Sphinx on Wed Mar 23 22:08:02 2022
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -2416,11 +2416,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'resulting\n'
|
||||
'object is “compatible” with the exception. An object is '
|
||||
'compatible\n'
|
||||
'with an exception if it is the class or a base class of the '
|
||||
'exception\n'
|
||||
'object, or a tuple containing an item that is the class or a '
|
||||
'with an exception if the object is the class or a *non-virtual '
|
||||
'base\n'
|
||||
'class of the exception object.\n'
|
||||
'class* of the exception object, or a tuple containing an item '
|
||||
'that is\n'
|
||||
'the class or a non-virtual base class of the exception object.\n'
|
||||
'\n'
|
||||
'If no except clause matches the exception, the search for an '
|
||||
'exception\n'
|
||||
|
@ -3567,15 +3567,17 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'on members\n'
|
||||
' of hashed collections including "set", "frozenset", and '
|
||||
'"dict".\n'
|
||||
' "__hash__()" should return an integer. The only required '
|
||||
'property\n'
|
||||
' is that objects which compare equal have the same hash '
|
||||
'value; it is\n'
|
||||
' advised to mix together the hash values of the '
|
||||
'components of the\n'
|
||||
' object that also play a part in comparison of objects by '
|
||||
'packing\n'
|
||||
' them into a tuple and hashing the tuple. Example:\n'
|
||||
' The "__hash__()" method should return an integer. The '
|
||||
'only required\n'
|
||||
' property is that objects which compare equal have the '
|
||||
'same hash\n'
|
||||
' value; it is advised to mix together the hash values of '
|
||||
'the\n'
|
||||
' components of the object that also play a part in '
|
||||
'comparison of\n'
|
||||
' objects by packing them into a tuple and hashing the '
|
||||
'tuple.\n'
|
||||
' Example:\n'
|
||||
'\n'
|
||||
' def __hash__(self):\n'
|
||||
' return hash((self.name, self.nick, self.color))\n'
|
||||
|
@ -4559,11 +4561,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'clause is\n'
|
||||
'selected depending on the class of the instance: it must '
|
||||
'reference the\n'
|
||||
'class of the instance or a base class thereof. The instance '
|
||||
'can be\n'
|
||||
'received by the handler and can carry additional information '
|
||||
'about the\n'
|
||||
'exceptional condition.\n'
|
||||
'class of the instance or a *non-virtual base class* thereof. '
|
||||
'The\n'
|
||||
'instance can be received by the handler and can carry '
|
||||
'additional\n'
|
||||
'information about the exceptional condition.\n'
|
||||
'\n'
|
||||
'Note:\n'
|
||||
'\n'
|
||||
|
@ -4886,11 +4888,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'clause is\n'
|
||||
'selected depending on the class of the instance: it must '
|
||||
'reference the\n'
|
||||
'class of the instance or a base class thereof. The instance '
|
||||
'can be\n'
|
||||
'received by the handler and can carry additional information '
|
||||
'about the\n'
|
||||
'exceptional condition.\n'
|
||||
'class of the instance or a *non-virtual base class* thereof. '
|
||||
'The\n'
|
||||
'instance can be received by the handler and can carry '
|
||||
'additional\n'
|
||||
'information about the exceptional condition.\n'
|
||||
'\n'
|
||||
'Note:\n'
|
||||
'\n'
|
||||
|
@ -8440,15 +8442,17 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'on members\n'
|
||||
' of hashed collections including "set", "frozenset", and '
|
||||
'"dict".\n'
|
||||
' "__hash__()" should return an integer. The only required '
|
||||
'property\n'
|
||||
' is that objects which compare equal have the same hash '
|
||||
'value; it is\n'
|
||||
' advised to mix together the hash values of the components '
|
||||
'of the\n'
|
||||
' object that also play a part in comparison of objects by '
|
||||
'packing\n'
|
||||
' them into a tuple and hashing the tuple. Example:\n'
|
||||
' The "__hash__()" method should return an integer. The '
|
||||
'only required\n'
|
||||
' property is that objects which compare equal have the '
|
||||
'same hash\n'
|
||||
' value; it is advised to mix together the hash values of '
|
||||
'the\n'
|
||||
' components of the object that also play a part in '
|
||||
'comparison of\n'
|
||||
' objects by packing them into a tuple and hashing the '
|
||||
'tuple.\n'
|
||||
' Example:\n'
|
||||
'\n'
|
||||
' def __hash__(self):\n'
|
||||
' return hash((self.name, self.nick, self.color))\n'
|
||||
|
@ -11531,10 +11535,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'exception. For an except clause with an expression, that expression\n'
|
||||
'is evaluated, and the clause matches the exception if the resulting\n'
|
||||
'object is “compatible” with the exception. An object is compatible\n'
|
||||
'with an exception if it is the class or a base class of the '
|
||||
'exception\n'
|
||||
'object, or a tuple containing an item that is the class or a base\n'
|
||||
'class of the exception object.\n'
|
||||
'with an exception if the object is the class or a *non-virtual base\n'
|
||||
'class* of the exception object, or a tuple containing an item that '
|
||||
'is\n'
|
||||
'the class or a non-virtual base class of the exception object.\n'
|
||||
'\n'
|
||||
'If no except clause matches the exception, the search for an '
|
||||
'exception\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue