[Python-checkins] r73515 - python/branches/py3k/Doc/library/stdtypes.rst

benjamin.peterson python-checkins at python.org
Tue Jun 23 05:09:33 CEST 2009


Author: benjamin.peterson
Date: Tue Jun 23 05:09:33 2009
New Revision: 73515
Log:
must be bytes
Modified:
 python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst	(original)
+++ python/branches/py3k/Doc/library/stdtypes.rst	Tue Jun 23 05:09:33 2009
@@ -2342,7 +2342,7 @@
 >>> v = memoryview(data)
 >>> v.readonly
 False
- >>> v[0] = 'z'
+ >>> v[0] = b'z'
 >>> data
 bytearray(b'zbcefg')
 >>> v[1:4] = b'123'


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /