Nick Coghlan added the comment:

There's still work to be done. The current status in 3.3 trunk is that:

Wide build:
>>> memoryview(array("u")).format
'w'

Narrow build:
>>> memoryview(array("u")).format
'u'

Neither of these are valid struct formats, thus they don't play nicely with the 
assumptions of memoryview (or any other PEP 3118 consumer). Stefan's memoryview 
changes are needed because there are *valid* struct formats that memoryview 
doesn't understand (yet), but it's only coincidental that they will reduce the 
severity of this problem.

Victor's latest patch switches the 'w' and 'u' for the appropriate integer 
sizes 'I' and 'H' which I think is an excellent approach.

There are also the post-reversion documentation changes Georg requested to 
bring the docs back into line with PEP 393

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13072>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to