[issue15573] Support unknown formats in memoryview comparisons
Nick Coghlan
report at bugs.python.org
Tue Aug 7 15:06:24 CEST 2012
Nick Coghlan added the comment:
I confess I was thinking of an even simpler "format strings must be identical" fallback, but agree your way is better, since it reproduces the 3.2 behaviour in many more cases where ignoring the format string actually did the right thing.
The struct docs for the byte order specifier specifically say "the first character of the format string can be used to indicate the byte order, size and alignment of the packed data", so treating format strings that include byte order markers elsewhere in the string as differing from each other if those markers are in different locations sounds fine to me.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15573>
_______________________________________
More information about the Python-bugs-list
mailing list