Vajrasky Kok added the comment:
Serhiy, you don't want to clear the cache in the test to simulate the bug?
struct._clearcache()
Other than that, should we raise struct.error instead of ValueError? Right now,
the current behaviour in python 2.7 is:
>>> struct.pack('\x80', 3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
struct.error: bad char in struct format
But you are right. Struct() should have been changed instead of struct.pack.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com