summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-08-17 12:23:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-08-17 12:23:45 (GMT)
commit94fedf9bfd1365c931f170bd2beebef2fbcffdf7 (patch)
tree338dc8be84aac89e06c76cc62b748bc4f3293e0c /Doc/api
parent0c230b9dacae8bc4c6088689db1dd085fada6b3a (diff)
downloadcpython-94fedf9bfd1365c931f170bd2beebef2fbcffdf7.zip
cpython-94fedf9bfd1365c931f170bd2beebef2fbcffdf7.tar.gz
cpython-94fedf9bfd1365c931f170bd2beebef2fbcffdf7.tar.bz2
Expand the API notes.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index a385ffd..67c4107 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -2918,8 +2918,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, the latter are also useful for copying (\code{c=s+s}) and clearing
-(\code{s-=s}).
+Note, \cfunction{PyNumber_InplaceSubtract()} is also useful clearing
+clearing a set (\code{s-=s}).
\begin{ctypedesc}{PySetObject}
This subtype of \ctype{PyObject} is used to hold the internal data for
@@ -2929,7 +2929,7 @@ Note, the latter are also useful for copying (\code{c=s+s}) and clearing
block of memory for medium and large sized sets (much like list storage).
None of the fields of this structure should be considered public and
are subject to change. All access should be done through the
- documented API.
+ documented API rather than by manipulating the values in the structure.
\end{ctypedesc}
@@ -2967,7 +2967,8 @@ Likewise, the constructor functions work with any iterable Python object.
\var{iterable}. The \var{iterable} may be \NULL{} to create a
new empty set. Returns the new set on success or \NULL{} on
failure. Raises \exception{TypeError} if \var{iterable} is
- not actually iterable.
+ not actually iterable. The constructor is also useful for
+ copying a set (\code{c=set(s)}).
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyFrozenSet_New}{PyObject *iterable}