Mark Dickinson <dicki...@gmail.com> added the comment: The deprecated struct features (float coercion, overflow wrapping) have been removed for py3k in r70497, r70688, r71754. I don't plan to backport this to 2.7; I'll just try to fix the behaviour in a minimal way there.
One thing that's not clear to me: what's the rationale for raising struct.error everywhere instead of more specific Python errors; e.g., TypeError for struct.pack('L', 'not an integer') and OverflowError for struct.pack('L', 10**100)? Is there a particular use-case for "except struct.error"? ---------- priority: critical -> normal _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1530559> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com