[issue15622] struct module 'c' specifier does not follow PEP-3118

Martin v. Löwis report at bugs.python.org
Sat Aug 11 11:18:16 CEST 2012


Martin v. Löwis added the comment:

No, I haven't rejected the format codes. What I did ask to revert is that 'u' in the array module denotes Py_UCS4, I requested that it should continue to be compatible with 3.2. I didn't have an opinion on memoryview at all then.

It's unfortunate that PEP 3118 deviates from the struct module, however, memoryview is based onthe buffer interface,and its formatcodes ought to conform to the PEP, not to the struct module (IMO).

It's easy to see that it *doesn't* follow the struct syntax, as it is possjible to create memoryview objects with other format codes in 3.3.

----------

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


More information about the Python-bugs-list mailing list