summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-03 17:32:27 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-03 17:32:27 (GMT)
commit3570551d6f47dbd2c0cb06a197e4f86701998243 (patch)
tree35a0a4000ba4bba43e6b6cad9e3528ab3bb51075 /Doc/lib
parent248b04383fafdb126794e989a2c023a16eb0f429 (diff)
downloadcpython-3570551d6f47dbd2c0cb06a197e4f86701998243.zip
cpython-3570551d6f47dbd2c0cb06a197e4f86701998243.tar.gz
cpython-3570551d6f47dbd2c0cb06a197e4f86701998243.tar.bz2
Remove most references to __members__ and __methods__, leaving only one pair
of references that now state that these attributes have been removed, directing the reader to the dir() function. This closes SF bug #456420.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libfuncs.tex4
-rw-r--r--Doc/lib/libstdtypes.tex11
2 files changed, 6 insertions, 9 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 0ae7e5f..2959922 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -205,8 +205,8 @@ def my_import(name):
Without arguments, return the list of names in the current local
symbol table. With an argument, attempts to return a list of valid
attribute for that object. This information is gleaned from the
- object's \member{__dict__}, \member{__methods__} and \member{__members__}
- attributes, if defined. The list is not necessarily complete. For
+ object's \member{__dict__} attribute, if defined, and from the class
+ or type object. The list is not necessarily complete. For
example, for classes, attributes defined in base classes are not
included, and for class instances, methods are not included.
The resulting list is sorted alphabetically. For example:
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 4cf24a4..8a8125d8 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1390,16 +1390,13 @@ object's (writable) attributes.
\end{memberdesc}
\begin{memberdesc}[object]{__methods__}
-List of the methods of many built-in object types. For example,
-\code{[].__methods__} yields \code{['append', 'count', 'index',
-'insert', 'pop', 'remove', 'reverse', 'sort']}. This usually does not
-need to be explicitly provided by the object.
+\deprecated{2.2}{Use the built-in function \function{dir()} to get a
+list of an object's attributes. This attribute is no longer available.}
\end{memberdesc}
\begin{memberdesc}[object]{__members__}
-Similar to \member{__methods__}, but lists data attributes. This
-usually does not need to be explicitly provided by the object, and
-need not include the names of the attributes defined in this section.
+\deprecated{2.2}{Use the built-in function \function{dir()} to get a
+list of an object's attributes. This attribute is no longer available.}
\end{memberdesc}
\begin{memberdesc}[instance]{__class__}