[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.151,1.152

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Nov 16 11:17:50 EST 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv13946/Doc/lib

Modified Files:
	libfuncs.tex 
Log Message:
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex.  Separate docs for the types are
forthcoming.



Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.151
retrieving revision 1.152
diff -C2 -d -r1.151 -r1.152
*** libfuncs.tex	6 Nov 2003 14:06:46 -0000	1.151
--- libfuncs.tex	16 Nov 2003 16:17:48 -0000	1.152
***************
*** 478,481 ****
--- 478,492 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{frozenset}{\optional{iterable}}
+   Return a frozenset object whose elements are taken from \var{iterable}.
+   Frozensets are sets that have no update methods but can be hashed and
+   used as members of other sets or as dictionary keys.  The elements of
+   a frozenset must be immutable themselves.  To represent sets of sets,
+   the inner sets should also be \class{frozenset} objects.  If
+   \var{iterable} is not specified, returns a new empty set,
+   \code{frozenset([])}.
+   \versionadded{2.4}  
+ \end{funcdesc}
+ 
  \begin{funcdesc}{getattr}{object, name\optional{, default}}
    Return the value of the named attributed of \var{object}.  \var{name}
***************
*** 896,899 ****
--- 907,918 ----
    are equally close, rounding is done away from 0 (so. for example,
    \code{round(0.5)} is \code{1.0} and \code{round(-0.5)} is \code{-1.0}).
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{set}{\optional{iterable}}
+   Return a set whose elements are taken from \var{iterable}.  The elements
+   must be immutable.  To represent sets of sets, the inner sets should
+   be \class{frozenset} objects.  If \var{iterable} is not specified,
+   returns a new empty set, \code{set([])}.
+   \versionadded{2.4}  
  \end{funcdesc}
  





More information about the Python-checkins mailing list