[issue5463] Remove deprecated features from struct module

Mark Dickinson report at bugs.python.org
Sat Mar 28 17:01:59 CET 2009


Mark Dickinson <dickinsm at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5463>
_______________________________________


More information about the Python-bugs-list mailing list