Mark Dickinson <dicki...@gmail.com> added the comment: I've messed with your patch a bit more. :) Here's the latest version.
Apart from the things I mentioned earlier, test_struct was failing on 64-bit machines with your original patch; I think that's fixed now. I also updated the docs. Does this version look okay to you? Still the float coercion to get rid of. I'd also like to replace the various struct.error exceptions with something more appropriate (e.g., OverflowError for out-of-range values, TypeError for floats passed to integer formats), but that probably needs a short python-dev discussion first. ---------- Added file: http://bugs.python.org/file13441/cleanup_range_check_patch2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5463> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com