summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-15 11:25:32 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-15 11:25:32 (GMT)
commit47b4c0fb35a5c0092fc82ece96fcb1a79dd2285d (patch)
treed9fec38185adbf8f70fda937f85610cd453e6295 /Doc/ref
parent9b623b3d6329425daa4cb389546eb23a32354b52 (diff)
downloadcpython-47b4c0fb35a5c0092fc82ece96fcb1a79dd2285d.zip
cpython-47b4c0fb35a5c0092fc82ece96fcb1a79dd2285d.tar.gz
cpython-47b4c0fb35a5c0092fc82ece96fcb1a79dd2285d.tar.bz2
replace ASCII by macro call
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref1.tex2
-rw-r--r--Doc/ref/ref2.tex22
-rw-r--r--Doc/ref/ref3.tex8
3 files changed, 16 insertions, 16 deletions
diff --git a/Doc/ref/ref1.tex b/Doc/ref/ref1.tex
index 0b006ba..30bfcce 100644
--- a/Doc/ref/ref1.tex
+++ b/Doc/ref/ref1.tex
@@ -65,7 +65,7 @@ first beginning with a vertical bar.
In lexical definitions (as the example above), two more conventions
are used: Two literal characters separated by three dots mean a choice
-of any single character in the given (inclusive) range of ASCII
+of any single character in the given (inclusive) range of \ASCII{}
characters. A phrase between angular brackets (\verb@<...>@) gives an
informal description of the symbol defined; e.g. this could be used
to describe the notion of `control character' if needed.
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index c08f829..b9593b8 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -233,16 +233,16 @@ to those used by Standard C. The recognized escape sequences are:
\verb/\\/ & Backslash (\verb/\/) \\
\verb/\'/ & Single quote (\verb/'/) \\
\verb/\"/ & Double quote (\verb/"/) \\
-\verb/\a/ & ASCII Bell (BEL) \\
-\verb/\b/ & ASCII Backspace (BS) \\
-%\verb/\E/ & ASCII Escape (ESC) \\
-\verb/\f/ & ASCII Formfeed (FF) \\
-\verb/\n/ & ASCII Linefeed (LF) \\
-\verb/\r/ & ASCII Carriage Return (CR) \\
-\verb/\t/ & ASCII Horizontal Tab (TAB) \\
-\verb/\v/ & ASCII Vertical Tab (VT) \\
-\verb/\/{\em ooo} & ASCII character with octal value {\em ooo} \\
-\verb/\x/{\em xx...} & ASCII character with hex value {\em xx...} \\
+\verb/\a/ & \ASCII{} Bell (BEL) \\
+\verb/\b/ & \ASCII{} Backspace (BS) \\
+%\verb/\E/ & \ASCII{} Escape (ESC) \\
+\verb/\f/ & \ASCII{} Formfeed (FF) \\
+\verb/\n/ & \ASCII{} Linefeed (LF) \\
+\verb/\r/ & \ASCII{} Carriage Return (CR) \\
+\verb/\t/ & \ASCII{} Horizontal Tab (TAB) \\
+\verb/\v/ & \ASCII{} Vertical Tab (VT) \\
+\verb/\/{\em ooo} & \ASCII{} character with octal value {\em ooo} \\
+\verb/\x/{\em xx...} & \ASCII{} character with hex value {\em xx...} \\
\hline
\end{tabular}
\end{center}
@@ -358,7 +358,7 @@ meaning:
= ;
\end{verbatim}
-The following printing ASCII characters are not used in Python. Their
+The following printing \ASCII{} characters are not used in Python. Their
occurrence outside string literals and comments is an unconditional
error:
\index{ASCII}
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 0904849..152b1bf 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -211,7 +211,7 @@ character type; a character is represented by a string of one element.
Characters represent (at least) 8-bit bytes. The built-in
functions \verb@chr()@ and \verb@ord()@ convert between characters
and nonnegative integers representing the byte values.
-Bytes with the values 0-127 represent the corresponding ASCII values.
+Bytes with the values 0-127 represent the corresponding \ASCII{} values.
The string data type is also used to represent arrays of bytes, e.g.
to hold data read from a file.
\obindex{string}
@@ -221,10 +221,10 @@ to hold data read from a file.
\bifuncindex{chr}
\bifuncindex{ord}
-(On systems whose native character set is not ASCII, strings may use
+(On systems whose native character set is not \ASCII{}, strings may use
EBCDIC in their internal representation, provided the functions
-\verb@chr()@ and \verb@ord()@ implement a mapping between ASCII and
-EBCDIC, and string comparison preserves the ASCII order.
+\verb@chr()@ and \verb@ord()@ implement a mapping between \ASCII{} and
+EBCDIC, and string comparison preserves the \ASCII{} order.
Or perhaps someone can propose a better rule?)
\index{ASCII}
\index{EBCDIC}