Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 482b151

Browse files
committed
Fix some issues found by Jacques Ducasse on the docs list.
1 parent f8754a6 commit 482b151

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

Doc/library/sys.rst

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,12 @@ always available.
127127

128128
.. index:: object: traceback
129129

130-
If no exception is being handled anywhere on the stack, a tuple containing three
131-
``None`` values is returned. Otherwise, the values returned are ``(type, value,
132-
traceback)``. Their meaning is: *type* gets the exception type of the exception
133-
being handled (a class object); *value* gets the exception parameter (its
134-
:dfn:`associated value` or the second argument to :keyword:`raise`, which is
135-
always a class instance if the exception type is a class object); *traceback*
136-
gets a traceback object (see the Reference Manual) which encapsulates the call
130+
If no exception is being handled anywhere on the stack, a tuple containing
131+
three ``None`` values is returned. Otherwise, the values returned are
132+
``(type, value, traceback)``. Their meaning is: *type* gets the type of the
133+
exception being handled (a subclass of :exc:`BaseException`); *value* gets
134+
the exception instance (an instance of the exception type); *traceback* gets
135+
a traceback object (see the Reference Manual) which encapsulates the call
137136
stack at the point where the exception originally occurred.
138137

139138
.. warning::
@@ -508,9 +507,7 @@ always available.
508507
more information.)
509508

510509
The meaning of the variables is the same as that of the return values from
511-
:func:`exc_info` above. (Since there is only one interactive thread,
512-
thread-safety is not a concern for these variables, unlike for ``exc_type``
513-
etc.)
510+
:func:`exc_info` above.
514511

515512

516513
.. data:: maxsize

Doc/reference/simple_stmts.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,12 @@ Assignment of an object to a single target is recursively defined as follows.
146146
* Otherwise: the name is bound to the object in the global namespace or the
147147
outer namespace determined by :keyword:`nonlocal`, respectively.
148148

149+
.. index:: single: destructor
150+
149151
The name is rebound if it was already bound. This may cause the reference
150152
count for the object previously bound to the name to reach zero, causing the
151153
object to be deallocated and its destructor (if it has one) to be called.
152154

153-
.. index:: single: destructor
154-
155-
The name is rebound if it was already bound. This may cause the reference count
156-
for the object previously bound to the name to reach zero, causing the object to
157-
be deallocated and its destructor (if it has one) to be called.
158-
159155
* If the target is a target list enclosed in parentheses or in square brackets:
160156
The object must be an iterable with the same number of items as there are
161157
targets in the target list, and its items are assigned, from left to right,

0 commit comments

Comments
 (0)