Skip to content

Commit 94fedf9

Browse files
committed
Expand the API notes.
1 parent 0c230b9 commit 94fedf9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/api/concrete.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,8 +2918,8 @@ \subsection{Set Objects \label{setObjects}}
29182918
\cfunction{PyNumber_Or()}, \cfunction{PyNumber_Xor()},
29192919
\cfunction{PyNumber_InplaceAdd()}, \cfunction{PyNumber_InplaceSubtract()},
29202920
\cfunction{PyNumber_InplaceOr()}, and \cfunction{PyNumber_InplaceXor()}).
2921-
Note, the latter are also useful for copying (\code{c=s+s}) and clearing
2922-
(\code{s-=s}).
2921+
Note, \cfunction{PyNumber_InplaceSubtract()} is also useful clearing
2922+
clearing a set (\code{s-=s}).
29232923

29242924
\begin{ctypedesc}{PySetObject}
29252925
This subtype of \ctype{PyObject} is used to hold the internal data for
@@ -2929,7 +2929,7 @@ \subsection{Set Objects \label{setObjects}}
29292929
block of memory for medium and large sized sets (much like list storage).
29302930
None of the fields of this structure should be considered public and
29312931
are subject to change. All access should be done through the
2932-
documented API.
2932+
documented API rather than by manipulating the values in the structure.
29332933

29342934
\end{ctypedesc}
29352935

@@ -2967,7 +2967,8 @@ \subsection{Set Objects \label{setObjects}}
29672967
\var{iterable}. The \var{iterable} may be \NULL{} to create a
29682968
new empty set. Returns the new set on success or \NULL{} on
29692969
failure. Raises \exception{TypeError} if \var{iterable} is
2970-
not actually iterable.
2970+
not actually iterable. The constructor is also useful for
2971+
copying a set (\code{c=set(s)}).
29712972
\end{cfuncdesc}
29722973

29732974
\begin{cfuncdesc}{PyObject*}{PyFrozenSet_New}{PyObject *iterable}

0 commit comments

Comments
 (0)