mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.
This commit is contained in:
parent
bfd1edd155
commit
a6bac95a3c
22 changed files with 127 additions and 125 deletions
|
@ -1127,11 +1127,10 @@ DocTest Objects
|
|||
.. class:: DocTest(examples, globs, name, filename, lineno, docstring)
|
||||
|
||||
A collection of doctest examples that should be run in a single namespace. The
|
||||
constructor arguments are used to initialize the member variables of the same
|
||||
names.
|
||||
constructor arguments are used to initialize the attributes of the same names.
|
||||
|
||||
|
||||
:class:`DocTest` defines the following member variables. They are initialized by
|
||||
:class:`DocTest` defines the following attributes. They are initialized by
|
||||
the constructor, and should not be modified directly.
|
||||
|
||||
|
||||
|
@ -1184,11 +1183,11 @@ Example Objects
|
|||
.. class:: Example(source, want, exc_msg=None, lineno=0, indent=0, options=None)
|
||||
|
||||
A single interactive example, consisting of a Python statement and its expected
|
||||
output. The constructor arguments are used to initialize the member variables
|
||||
of the same names.
|
||||
output. The constructor arguments are used to initialize the attributes of
|
||||
the same names.
|
||||
|
||||
|
||||
:class:`Example` defines the following member variables. They are initialized by
|
||||
:class:`Example` defines the following attributes. They are initialized by
|
||||
the constructor, and should not be modified directly.
|
||||
|
||||
|
||||
|
@ -1675,9 +1674,9 @@ There are two exceptions that may be raised by :class:`DebugRunner` instances:
|
|||
|
||||
An exception raised by :class:`DocTestRunner` to signal that a doctest example's
|
||||
actual output did not match its expected output. The constructor arguments are
|
||||
used to initialize the member variables of the same names.
|
||||
used to initialize the attributes of the same names.
|
||||
|
||||
:exc:`DocTestFailure` defines the following member variables:
|
||||
:exc:`DocTestFailure` defines the following attributes:
|
||||
|
||||
|
||||
.. attribute:: DocTestFailure.test
|
||||
|
@ -1699,9 +1698,9 @@ There are two exceptions that may be raised by :class:`DebugRunner` instances:
|
|||
|
||||
An exception raised by :class:`DocTestRunner` to signal that a doctest
|
||||
example raised an unexpected exception. The constructor arguments are used
|
||||
to initialize the member variables of the same names.
|
||||
to initialize the attributes of the same names.
|
||||
|
||||
:exc:`UnexpectedException` defines the following member variables:
|
||||
:exc:`UnexpectedException` defines the following attributes:
|
||||
|
||||
|
||||
.. attribute:: UnexpectedException.test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue