Message204719
| Author |
skrah |
| Recipients |
hct, skrah |
| Date |
2013年11月29日.11:07:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1385723259.36.0.0675293001269.issue19803@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> class B1(ctypes.Structure):
... _fields_ = [("data", ctypes.c_uint8 * 256), ]
... _pack_ = 1
...
>>> a= B1()
>>> x = memoryview(a)
>>> x.format
'B'
In the first case the format is 'B', in the second case the
format is:
>>> x = memoryview(b)
>>> x.format
'T{(256)<B:data:}'
While the latter is probably a valid PEP 3118 format, it's
not implemented anywhere outside ctypes See #3132. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年11月29日 11:07:39 | skrah | set | recipients:
+ skrah, hct |
| 2013年11月29日 11:07:39 | skrah | set | messageid: <1385723259.36.0.0675293001269.issue19803@psf.upfronthosting.co.za> |
| 2013年11月29日 11:07:39 | skrah | link | issue19803 messages |
| 2013年11月29日 11:07:38 | skrah | create |
|