summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc_data/topics.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pydoc_data/topics.py')
-rw-r--r--Lib/pydoc_data/topics.py95
1 files changed, 40 insertions, 55 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py
index e7f403d..573065b 100644
--- a/Lib/pydoc_data/topics.py
+++ b/Lib/pydoc_data/topics.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Autogenerated by Sphinx on Tue Feb 7 13:18:04 2023
+# Autogenerated by Sphinx on Tue Mar 7 22:42:28 2023
topics = {'assert': 'The "assert" statement\n'
'**********************\n'
'\n'
@@ -2499,42 +2499,33 @@ topics = {'assert': 'The "assert" statement\n'
'alive\n'
'until the next garbage collection occurs.\n'
'\n'
- 'Before an "except" clause’s suite is executed, details about '
- 'the\n'
- 'exception are stored in the "sys" module and can be accessed '
- 'via\n'
- '"sys.exc_info()". "sys.exc_info()" returns a 3-tuple consisting '
- 'of the\n'
- 'exception class, the exception instance and a traceback object '
- '(see\n'
- 'section The standard type hierarchy) identifying the point in '
- 'the\n'
- 'program where the exception occurred. The details about the '
- 'exception\n'
- 'accessed via "sys.exc_info()" are restored to their previous '
- 'values\n'
- 'when leaving an exception handler:\n'
+ 'Before an "except" clause’s suite is executed, the exception is '
+ 'stored\n'
+ 'in the "sys" module, where it can be accessed from within the '
+ 'body of\n'
+ 'the "except" clause by calling "sys.exception()". When leaving '
+ 'an\n'
+ 'exception handler, the exception stored in the "sys" module is '
+ 'reset\n'
+ 'to its previous value:\n'
'\n'
- ' >>> print(sys.exc_info())\n'
- ' (None, None, None)\n'
+ ' >>> print(sys.exception())\n'
+ ' None\n'
' >>> try:\n'
' ... raise TypeError\n'
' ... except:\n'
- ' ... print(sys.exc_info())\n'
+ ' ... print(repr(sys.exception()))\n'
' ... try:\n'
' ... raise ValueError\n'
' ... except:\n'
- ' ... print(sys.exc_info())\n'
- ' ... print(sys.exc_info())\n'
+ ' ... print(repr(sys.exception()))\n'
+ ' ... print(repr(sys.exception()))\n'
' ...\n'
- " (<class 'TypeError'>, TypeError(), <traceback object at "
- '0x10efad080>)\n'
- " (<class 'ValueError'>, ValueError(), <traceback object at "
- '0x10efad040>)\n'
- " (<class 'TypeError'>, TypeError(), <traceback object at "
- '0x10efad080>)\n'
- ' >>> print(sys.exc_info())\n'
- ' (None, None, None)\n'
+ ' TypeError()\n'
+ ' ValueError()\n'
+ ' TypeError()\n'
+ ' >>> print(sys.exception())\n'
+ ' None\n'
'\n'
'\n'
'"except*" clause\n'
@@ -4533,7 +4524,7 @@ topics = {'assert': 'The "assert" statement\n'
'objects and\n'
' implements an "__eq__()" method, it should not '
'implement\n'
- ' "__hash__()", since the implementation of hashable '
+ ' "__hash__()", since the implementation of *hashable* '
'collections\n'
' requires that a key’s hash value is immutable (if the '
'object’s hash\n'
@@ -9453,7 +9444,7 @@ topics = {'assert': 'The "assert" statement\n'
' hashable collections. If a class defines mutable objects '
'and\n'
' implements an "__eq__()" method, it should not implement\n'
- ' "__hash__()", since the implementation of hashable '
+ ' "__hash__()", since the implementation of *hashable* '
'collections\n'
' requires that a key’s hash value is immutable (if the '
'object’s hash\n'
@@ -12644,37 +12635,31 @@ topics = {'assert': 'The "assert" statement\n'
'cycle with the stack frame, keeping all locals in that frame alive\n'
'until the next garbage collection occurs.\n'
'\n'
- 'Before an "except" clause’s suite is executed, details about the\n'
- 'exception are stored in the "sys" module and can be accessed via\n'
- '"sys.exc_info()". "sys.exc_info()" returns a 3-tuple consisting of '
- 'the\n'
- 'exception class, the exception instance and a traceback object (see\n'
- 'section The standard type hierarchy) identifying the point in the\n'
- 'program where the exception occurred. The details about the '
- 'exception\n'
- 'accessed via "sys.exc_info()" are restored to their previous values\n'
- 'when leaving an exception handler:\n'
+ 'Before an "except" clause’s suite is executed, the exception is '
+ 'stored\n'
+ 'in the "sys" module, where it can be accessed from within the body '
+ 'of\n'
+ 'the "except" clause by calling "sys.exception()". When leaving an\n'
+ 'exception handler, the exception stored in the "sys" module is reset\n'
+ 'to its previous value:\n'
'\n'
- ' >>> print(sys.exc_info())\n'
- ' (None, None, None)\n'
+ ' >>> print(sys.exception())\n'
+ ' None\n'
' >>> try:\n'
' ... raise TypeError\n'
' ... except:\n'
- ' ... print(sys.exc_info())\n'
+ ' ... print(repr(sys.exception()))\n'
' ... try:\n'
' ... raise ValueError\n'
' ... except:\n'
- ' ... print(sys.exc_info())\n'
- ' ... print(sys.exc_info())\n'
+ ' ... print(repr(sys.exception()))\n'
+ ' ... print(repr(sys.exception()))\n'
' ...\n'
- " (<class 'TypeError'>, TypeError(), <traceback object at "
- '0x10efad080>)\n'
- " (<class 'ValueError'>, ValueError(), <traceback object at "
- '0x10efad040>)\n'
- " (<class 'TypeError'>, TypeError(), <traceback object at "
- '0x10efad080>)\n'
- ' >>> print(sys.exc_info())\n'
- ' (None, None, None)\n'
+ ' TypeError()\n'
+ ' ValueError()\n'
+ ' TypeError()\n'
+ ' >>> print(sys.exception())\n'
+ ' None\n'
'\n'
'\n'
'"except*" clause\n'
@@ -14408,7 +14393,7 @@ topics = {'assert': 'The "assert" statement\n'
' New in version 3.10.\n'
'\n'
'Keys views are set-like since their entries are unique and '
- 'hashable.\n'
+ '*hashable*.\n'
'If all values are hashable, so that "(key, value)" pairs are '
'unique\n'
'and hashable, then the items view is also set-like. (Values '