[Python-checkins] python/dist/src/Doc/lib libsets.tex,1.6,1.7

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 25 Aug 2002 11:43:12 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv26090/doc/lib

Modified Files:
	libsets.tex 
Log Message:
Implemented <, <=, >, >= for sets, giving subset and proper-subset
meanings.  I did not add new, e.g., ispropersubset() methods; we're
going nuts on those, and, e.g., there was no "friendly name" for
== either.


Index: libsets.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsets.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** libsets.tex	24 Aug 2002 07:33:06 -0000	1.6
--- libsets.tex	25 Aug 2002 18:43:10 -0000	1.7
***************
*** 75,81 ****
           {test \var{x} for non-membership in \var{s}}
    \lineii{\var{s}.issubset(\var{t})}
!          {test whether every element in \var{s} is in \var{t}}
    \lineii{\var{s}.issuperset(\var{t})}
!          {test whether every element in \var{t} is in \var{s}}
  
    \hline
--- 75,83 ----
           {test \var{x} for non-membership in \var{s}}
    \lineii{\var{s}.issubset(\var{t})}
!          {test whether every element in \var{s} is in \var{t};
!          \code{\var{s} <= \var{t}} is equivalent}
    \lineii{\var{s}.issuperset(\var{t})}
!          {test whether every element in \var{t} is in \var{s};
!          \code{\var{s} >= \var{t}} is equivalent}
  
    \hline
***************
*** 100,106 ****
  \end{tableii}
  
! In addition to the above operations, both \class{Set} and \class{ImmutableSet}
! support set to set equality comparisons.  Two sets are equal if and only if
! every element of each set is contained in the other.
  
  The following table lists operations available in \class{ImmutableSet}
--- 102,113 ----
  \end{tableii}
  
! In addition, both \class{Set} and \class{ImmutableSet}
! support set to set comparisons.  Two sets are equal if and only if
! every element of each set is contained in the other (each is a subset
! of the other).
! A set is less than another set if and only if the first set is a proper
! subset of the second set (is a subset, but is not equal).
! A set is greater than another set if and only if the first set is a proper
! superset of the second set (is a superset, but is not equal).
  
  The following table lists operations available in \class{ImmutableSet}