mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Python 3.10.4
This commit is contained in:
parent
4298114e1d
commit
9d38120e33
15 changed files with 158 additions and 67 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Wed Mar 16 11:26:55 2022
|
||||
# Autogenerated by Sphinx on Wed Mar 23 20:11:40 2022
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -2418,11 +2418,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'
|
||||
|
@ -4399,15 +4399,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'
|
||||
|
@ -5391,11 +5393,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'
|
||||
|
@ -5730,11 +5732,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'
|
||||
|
@ -9303,15 +9305,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'
|
||||
|
@ -12428,10 +12432,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