summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/email-unpack.py2
-rw-r--r--Doc/lib/libstdtypes.tex14
-rw-r--r--Doc/lib/libstdwin.tex4
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: