summaryrefslogtreecommitdiffstats
path: root/Doc/libstruct.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
commit6c4f003202bade83791c754cd94e28c1c2fb10fa (patch)
tree749a24c8924e8b4e717cf0267b1c93791f30d3f5 /Doc/libstruct.tex
parentd01c100713ed5f4490300c16501407b86e789e5d (diff)
downloadcpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.zip
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.gz
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.bz2
changes (suggested) by Soren Larsen
Diffstat (limited to 'Doc/libstruct.tex')
-rw-r--r--Doc/libstruct.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/libstruct.tex b/Doc/libstruct.tex
index 5b4a9aa..280fe55 100644
--- a/Doc/libstruct.tex
+++ b/Doc/libstruct.tex
@@ -49,7 +49,7 @@ and Python values should be obvious given their types:
\lineiii{d}{double}{float}
\end{tableiii}
-A format character may be preceded by an integral repeat count; e.g.
+A format character may be preceded by an integral repeat count; e.g.\
the format string \code{'4h'} means exactly the same as \code{'hhhh'}.
C numbers are represented in the machine's native format and byte
@@ -66,10 +66,10 @@ calcsize('hhl') == 8
Hint: to align the end of a structure to the alignment requirement of
a particular type, end the format with the code for that type with a
-repeat count of zero, e.g. the format \code{'llh0l'} specifies two
+repeat count of zero, e.g.\ the format \code{'llh0l'} specifies two
pad bytes at the end, assuming longs are aligned on 4-byte boundaries.
-(More format characters are planned, e.g. \code{'s'} for character
+(More format characters are planned, e.g.\ \code{'s'} for character
arrays, upper case for unsigned variants, and a way to specify the
byte order, which is useful for [de]constructing network packets and
reading/writing portable binary file formats like TIFF and AIFF.)