[issue15857] memoryview: complete support for struct packing/unpacking

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15857] memoryview: complete support for struct packing/unpacking

2014-10-14 Thread Stefan Krah
Stefan Krah added the comment: Closing, since the main request is tracked in #3132. -- resolution: -> duplicate stage: needs patch -> ___ Python tracker ___ ___

[issue15857] memoryview: complete support for struct packing/unpacking

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15857] memoryview: complete support for struct packing/unpacking

2012-09-03 Thread Stefan Krah
Stefan Krah added the comment: '>' in struct syntax implies "standard size" for 'l', which is 4 bytes. ctypes uses machine size for c_long, so on an LP64 machine you can unpack the data as: >>> struct.unpack_from('>qq', a) (100, 200) -- ___ Python t

[issue15857] memoryview: complete support for struct packing/unpacking

2012-09-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: What about >>> struct.unpack_from('>ll',a) (0, 100) shouldn't that return (100, 200)? -- ___ Python tracker ___

[issue15857] memoryview: complete support for struct packing/unpacking

2012-09-03 Thread Stefan Krah
Stefan Krah added the comment: It's deliberately not implemented (and documented): Since memoryview is a complete rewrite, I tried go easy on new features in order to facilitate review. My plan was to implement struct packing/unpacking in 3.3.1 in the same manner as in the new equality function