[Python-checkins] r86882 - python/branches/py3k/Doc/tutorial/stdlib.rst
georg.brandl
python-checkins at python.org
Tue Nov 30 09:20:16 CET 2010
Author: georg.brandl
Date: Tue Nov 30 09:20:16 2010
New Revision: 86882
Log:
Fix input type for zlib.
Modified:
python/branches/py3k/Doc/tutorial/stdlib.rst
Modified: python/branches/py3k/Doc/tutorial/stdlib.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/stdlib.rst (original)
+++ python/branches/py3k/Doc/tutorial/stdlib.rst Tue Nov 30 09:20:16 2010
@@ -207,14 +207,14 @@
: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
More information about the Python-checkins
mailing list