[issue8300] Allow struct.pack to handle objects with an __index__ method.
Mark Dickinson
report at bugs.python.org
Sat Apr 3 15:24:15 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Here's a patch for trunk. It combines the docs and tests from Meador Inge's patch in issue 1530559 with a C-level change to get_pylong in Modules/struct.c.
----------
keywords: +patch
versions: +Python 2.7
Added file: http://bugs.python.org/file16746/struct_index_trunk.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8300>
_______________________________________
More information about the Python-bugs-list
mailing list