Message110061
The documentation implies that memoryview always accesses bytes:
* "len(view) returns the total number of bytes in the memoryview, view."
* "Taking a single index will return a single byte."
But, the following example shows this is misleading:
>>> from array import array
>>> ar = array('H', [1,2,3])
>>> arv = memoryview(ar)
>>> len(arv)
3
>>> arv[1]
b'\x02\x00' |
|
Date |
User |
Action |
Args |
2010-07-12 01:04:57 | cmcqueen1975 | set | recipients:
+ cmcqueen1975, georg.brandl, teoliphant, pitrou, vstinner, flox |
2010-07-12 01:04:57 | cmcqueen1975 | set | messageid: <1278896697.1.0.128306929239.issue7696@psf.upfronthosting.co.za> |
2010-07-12 01:04:55 | cmcqueen1975 | link | issue7696 messages |
2010-07-12 01:04:55 | cmcqueen1975 | create | |
|