[Python-checkins] r43176 - python/trunk/Doc/api/concrete.tex

raymond.hettinger python-checkins at python.org
Mon Mar 20 19:36:00 CET 2006

Author: raymond.hettinger
Date: Mon Mar 20 19:35:55 2006
New Revision: 43176

Show an example of calling a named set method.

Modified: python/trunk/Doc/api/concrete.tex
--- python/trunk/Doc/api/concrete.tex	(original)
+++ python/trunk/Doc/api/concrete.tex	Mon Mar 20 19:35:55 2006
@@ -3025,8 +3025,8 @@
 \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)}
   This subtype of \ctype{PyObject} is used to hold the internal data for

More information about the Python-checkins mailing list