Message90129
Here's a patch that does some general cleanup of the object->integer
helper functions in the struct module; in the process, it fixes this
bug. With this patch, all conversions from a PyObject to a C integer go
through get_pylong, so they're all treated the same way. Currently
(i.e., without the patch) there's a lack of consistency in the way the
various integer codes are handled---some codes emit a warning for float
conversions and some ('q', 'Q') don't; some codes will happily convert
a Decimal instance, and others won't. Some codes produce this strange
'unsupported operand types' message and some don't, etc. |
|
Date |
User |
Action |
Args |
2009-07-04 21:48:13 | mark.dickinson | set | recipients:
+ mark.dickinson, theller, ajaksu2, vdupras |
2009-07-04 21:48:13 | mark.dickinson | set | messageid: <1246744093.58.0.960122230987.issue1741130@psf.upfronthosting.co.za> |
2009-07-04 21:48:12 | mark.dickinson | link | issue1741130 messages |
2009-07-04 21:48:12 | mark.dickinson | create | |
|