Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstruct.tex @ 16226:c7c404b35f33 legacy-trunk
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
Switch from octal escapes to hex escapes for other nonprintable characters.
| author | Ka-Ping Yee <ping@zesty.ca> |
|---|---|
| date | Wed, 24 Jan 2001 17:19:08 +0000 |
| parents | e82e82b3b9ad |
| children | 8e187740aa96 |
line wrap: on
line diff
--- a/Doc/lib/libstruct.tex Wed Jan 24 17:18:21 2001 +0000 +++ b/Doc/lib/libstruct.tex Wed Jan 24 17:19:08 2001 +0000 @@ -168,8 +168,8 @@ \begin{verbatim} >>> from struct import * >>> pack('hhl', 1, 2, 3) -'\000\001\000\002\000\000\000\003' ->>> unpack('hhl', '\000\001\000\002\000\000\000\003') +'\x00\x01\x00\x02\x00\x00\x00\x03' +>>> unpack('hhl', '\x00\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) >>> calcsize('hhl') 8
