diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 04:39:12 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 04:39:12 (GMT) |
commit | 3bd844e695c8295c23d64d816bd763543cc9728f (patch) | |
tree | 5c8ae0b247d082498a3e9c02e1eeca9af6a1f0c2 /Doc/lib | |
parent | c4996ba794d9438be8e472ad5f6c3c55fbf751e8 (diff) | |
download | cpython-3bd844e695c8295c23d64d816bd763543cc9728f.zip cpython-3bd844e695c8295c23d64d816bd763543cc9728f.tar.gz cpython-3bd844e695c8295c23d64d816bd763543cc9728f.tar.bz2 |
Get rid of most of the remaining uses of <>. There's still Tools/* thogh.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/email-unpack.py | 2 | ||||
-rw-r--r-- | Doc/lib/libstdtypes.tex | 14 | ||||
-rw-r--r-- | Doc/lib/libstdwin.tex | 4 |
3 files changed, 4 insertions, 16 deletions
diff --git a/Doc/lib/email-unpack.py b/Doc/lib/email-unpack.py index fc05d99..fb03e58 100644 --- a/Doc/lib/email-unpack.py +++ b/Doc/lib/email-unpack.py @@ -37,7 +37,7 @@ Usage: %prog [options] msgfile os.mkdir(opts.directory) except OSError, e: # Ignore directory exists error - if e.errno <> errno.EEXIST: + if e.errno != errno.EEXIST: raise fp = open(msgfile) diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 95b06f8..e1993aa 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -126,8 +126,7 @@ This table summarizes the comparison operations: \lineiii{>}{strictly greater than}{} \lineiii{>=}{greater than or equal}{} \lineiii{==}{equal}{} - \lineiii{!=}{not equal}{(1)} - \lineiii{<>}{not equal}{(1)} + \lineiii{!=}{not equal} \lineiii{is}{object identity}{} \lineiii{is not}{negated object identity}{} \end{tableiii} @@ -136,17 +135,6 @@ This table summarizes the comparison operations: \opindex{is} \opindex{is not} -\noindent -Notes: - -\begin{description} - -\item[(1)] -\code{<>} and \code{!=} are alternate spellings for the same operator. -\code{!=} is the preferred spelling; \code{<>} is obsolescent. - -\end{description} - Objects of different types, except different numeric types and different string types, never compare equal; such objects are ordered consistently but arbitrarily (so that sorting a heterogeneous array yields a consistent result). diff --git a/Doc/lib/libstdwin.tex b/Doc/lib/libstdwin.tex index 84aad2f..f2278e5 100644 --- a/Doc/lib/libstdwin.tex +++ b/Doc/lib/libstdwin.tex @@ -123,8 +123,8 @@ Return the default foreground color for unknown color names. Hint: the following code tests whether you are on a machine that supports more than two colors: \begin{verbatim} -if stdwin.fetchcolor('black') <> \ - stdwin.fetchcolor('red') <> \ +if stdwin.fetchcolor('black') != \ + stdwin.fetchcolor('red') != \ stdwin.fetchcolor('white'): print 'color machine' else: |