[New-bugs-announce] [issue9304] unreproducible example in the memoryview documentation

Carl Chenet report at bugs.python.org
Mon Jul 19 17:25:53 CEST 2010


New submission from Carl Chenet <chaica at ohmytux.com>:

Hi,

In the current documentation at http://docs.python.org/library/stdtypes.html#memoryview, the first example announces : 

>>> v = memoryview('abcefg')
>>> v[1]
'b'
>>> v[-1]
'g'
>>> v[1:4]
<memory at 0x77ab28>
>>> str(v[1:4])
'bce'

Trying to reproduce this example I got : 

$ python
Python 2.7 (r27:82500, Jul 13 2010, 17:48:51) 
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> v = memoryview('abcefg')
>>> v[1]
'b'
>>> v[-1]
'g'
>>> v[1:4]
<memory at 0xa2a510>
>>> str(v[1:4])
'<memory at 0xa2a5a8>'

The last line of the example in the documentation is not reproducible. Hope it's only a documentation issue.

Bye,
Carl Chenet

----------
assignee: docs at python
components: Documentation
messages: 110766
nosy: chaica_, docs at python
priority: normal
severity: normal
status: open
title: unreproducible example in the memoryview documentation
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9304>
_______________________________________


More information about the New-bugs-announce mailing list