Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1efbb0f

Browse files
committed
Added docs for delattr
1 parent 91ab4a8 commit 1efbb0f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ \section{Built-in Functions}
5151
if it consists of a single expression.
5252
\end{funcdesc}
5353

54+
\begin{funcdesc}{delattr}{object\, name}
55+
This is a relative of \code{setattr}. The arguments are an
56+
object and a string. The string must be the name
57+
of one of the object's attributes. The function deletes
58+
the named attribute, provided the object allows it. For example,
59+
\code{setattr(\var{x}, '\var{foobar}')} is equivalent to
60+
\code{del \var{x}.\var{foobar}}.
61+
\end{funcdesc}
62+
5463
\begin{funcdesc}{dir}{}
5564
Without arguments, return the list of names in the current local
5665
symbol table. With a module, class or class instance object as

Doc/libfuncs.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ \section{Built-in Functions}
5151
if it consists of a single expression.
5252
\end{funcdesc}
5353

54+
\begin{funcdesc}{delattr}{object\, name}
55+
This is a relative of \code{setattr}. The arguments are an
56+
object and a string. The string must be the name
57+
of one of the object's attributes. The function deletes
58+
the named attribute, provided the object allows it. For example,
59+
\code{setattr(\var{x}, '\var{foobar}')} is equivalent to
60+
\code{del \var{x}.\var{foobar}}.
61+
\end{funcdesc}
62+
5463
\begin{funcdesc}{dir}{}
5564
Without arguments, return the list of names in the current local
5665
symbol table. With a module, class or class instance object as

0 commit comments

Comments
 (0)