summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-26 20:39:54 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-26 20:39:54 (GMT)
commite20aef574a1373139ae17c6c4a02d83fe5668164 (patch)
tree9212d7b645e5a2e1b77d6ff5c68673b8515d3a01 /Doc
parentab0abdcef8dac933d838cb584dd4b728c2474b1e (diff)
downloadcpython-e20aef574a1373139ae17c6c4a02d83fe5668164.zip
cpython-e20aef574a1373139ae17c6c4a02d83fe5668164.tar.gz
cpython-e20aef574a1373139ae17c6c4a02d83fe5668164.tar.bz2
Ignore whitespace between formats (not internal to a count+format).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstruct.tex3
-rw-r--r--Doc/libstruct.tex3
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libstruct.tex b/Doc/lib/libstruct.tex
index d57a2b7..af2e6d2 100644
--- a/Doc/lib/libstruct.tex
+++ b/Doc/lib/libstruct.tex
@@ -61,6 +61,9 @@ and Python values should be obvious given their types:
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'}.
+Whitespace characters between formats are ignored; a count and its
+format must not contain whitespace though.
+
For the \code{'s'} format character, the count is interpreted as the
size of the string, not a repeat count like for the other format
characters; e.g. \code{'10s'} means a single 10-byte string, while
diff --git a/Doc/libstruct.tex b/Doc/libstruct.tex
index d57a2b7..af2e6d2 100644
--- a/Doc/libstruct.tex
+++ b/Doc/libstruct.tex
@@ -61,6 +61,9 @@ and Python values should be obvious given their types:
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'}.
+Whitespace characters between formats are ignored; a count and its
+format must not contain whitespace though.
+
For the \code{'s'} format character, the count is interpreted as the
size of the string, not a repeat count like for the other format
characters; e.g. \code{'10s'} means a single 10-byte string, while