diff options
author | Raymond Hettinger <python@rcn.com> | 2006-03-20 18:35:55 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2006-03-20 18:35:55 (GMT) |
commit | 66760f87b51662d95a0d13226712d83a7ab049f8 (patch) | |
tree | c64a88e575ab506efb1f61ac24673fb0275956fa /Doc | |
parent | e502693ee9af3a8f614dbc67dc56454bb31d310e (diff) | |
download | cpython-66760f87b51662d95a0d13226712d83a7ab049f8.zip cpython-66760f87b51662d95a0d13226712d83a7ab049f8.tar.gz cpython-66760f87b51662d95a0d13226712d83a7ab049f8.tar.bz2 |
Show an example of calling a named set method.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/concrete.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index 5521b80..f82f7c7 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -3025,8 +3025,8 @@ or the abstract number protocol (including \cfunction{PyNumber_Or()}, \cfunction{PyNumber_Xor()}, \cfunction{PyNumber_InPlaceAdd()}, \cfunction{PyNumber_InPlaceSubtract()}, \cfunction{PyNumber_InPlaceOr()}, and \cfunction{PyNumber_InPlaceXor()}). -Note, \cfunction{PyNumber_InPlaceSubtract()} is also useful clearing -clearing a set (\code{s-=s}). + +For example, to clear a set, write: \code{PyObject_CallMethod(s, "clear", NULL)} \begin{ctypedesc}{PySetObject} This subtype of \ctype{PyObject} is used to hold the internal data for |