From: Guido van Rossum Date: Tue, 16 Aug 1994 22:15:11 +0000 (+0000) Subject: Added docs for delattr X-Git-Tag: v1.1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1efbb0f00233620eefb3d12112a5311e052fb0f3;p=thirdparty%2FPython%2Fcpython.git Added docs for delattr --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 379011da1e5c..923daf36019c 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 379011da1e5c..923daf36019c 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