summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-16 22:15:11 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-16 22:15:11 (GMT)
commit1efbb0f00233620eefb3d12112a5311e052fb0f3 (patch)
tree6f1c5f77ee944a16b9d8011b0ff012a696778443
parent91ab4a8353447f265a7559a4769ac5404bb0b157 (diff)
downloadcpython-1efbb0f00233620eefb3d12112a5311e052fb0f3.zip
cpython-1efbb0f00233620eefb3d12112a5311e052fb0f3.tar.gz
cpython-1efbb0f00233620eefb3d12112a5311e052fb0f3.tar.bz2
Added docs for delattr
-rw-r--r--Doc/lib/libfuncs.tex9
-rw-r--r--Doc/libfuncs.tex9
2 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 379011d..923daf3 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -51,6 +51,15 @@ exactly one argument.)
if it consists of a single expression.
\end{funcdesc}
+\begin{funcdesc}{delattr}{object\, name}
+ This is a relative of \code{setattr}. The arguments are an
+ object and a string. The string must be the name
+ of one of the object's attributes. The function deletes
+ the named attribute, provided the object allows it. For example,
+ \code{setattr(\var{x}, '\var{foobar}')} is equivalent to
+ \code{del \var{x}.\var{foobar}}.
+\end{funcdesc}
+
\begin{funcdesc}{dir}{}
Without arguments, return the list of names in the current local
symbol table. With a module, class or class instance object as
diff --git a/Doc/libfuncs.tex b/Doc/libfuncs.tex
index 379011d..923daf3 100644
--- a/Doc/libfuncs.tex
+++ b/Doc/libfuncs.tex
@@ -51,6 +51,15 @@ exactly one argument.)
if it consists of a single expression.
\end{funcdesc}
+\begin{funcdesc}{delattr}{object\, name}
+ This is a relative of \code{setattr}. The arguments are an
+ object and a string. The string must be the name
+ of one of the object's attributes. The function deletes
+ the named attribute, provided the object allows it. For example,
+ \code{setattr(\var{x}, '\var{foobar}')} is equivalent to
+ \code{del \var{x}.\var{foobar}}.
+\end{funcdesc}
+
\begin{funcdesc}{dir}{}
Without arguments, return the list of names in the current local
symbol table. With a module, class or class instance object as