projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f358aa
)
Fix input type for zlib.
author
Georg Brandl
<georg@python.org>
Tue, 30 Nov 2010 08:20:16 +0000
(08:20 +0000)
committer
Georg Brandl
<georg@python.org>
Tue, 30 Nov 2010 08:20:16 +0000
(08:20 +0000)
Doc/tutorial/stdlib.rst
patch
|
blob
|
history
diff --git
a/Doc/tutorial/stdlib.rst
b/Doc/tutorial/stdlib.rst
index 9d25dbd9b74935d2cb5d905c00f9e566be03d455..97297434ed83b8ab4eacec0617502bc7286043ab 100644
(file)
--- a/
Doc/tutorial/stdlib.rst
+++ b/
Doc/tutorial/stdlib.rst
@@
-207,14
+207,14
@@
including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`zipfile` and
:mod:`tarfile`. ::
>>> import zlib
- >>> s = 'witch which has which witches wrist watch'
+ >>> s =
b
'witch which has which witches wrist watch'
>>> len(s)
41
>>> t = zlib.compress(s)
>>> len(t)
37
>>> zlib.decompress(t)
- 'witch which has which witches wrist watch'
+
b
'witch which has which witches wrist watch'
>>> zlib.crc32(s)
226805979