From 1efbb0f00233620eefb3d12112a5311e052fb0f3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Aug 1994 22:15:11 +0000 Subject: Added docs for delattr --- Doc/lib/libfuncs.tex | 9 +++++++++ Doc/libfuncs.tex | 9 +++++++++ 2 files changed, 18 insertions(+) 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 -- cgit v0.12