Message102262
That patch was a bit hasty in many respects; here's a better one.
For 2.7, the scheme is as follows: when packing a non-integer with an integer format:
(1) First __index__ is tried
(2) If the __index__ method doesn't exist, or the call to __index__ raises TypeError, then the __int__ method is tried.
(3) If the __index__ method raises something other than TypeError, or returns a non-integer, then struct.pack fails. |
|
Date |
User |
Action |
Args |
2010-04-03 13:57:09 | mark.dickinson | set | recipients:
+ mark.dickinson, meador.inge |
2010-04-03 13:57:09 | mark.dickinson | set | messageid: <1270303029.02.0.885523101722.issue8300@psf.upfronthosting.co.za> |
2010-04-03 13:57:07 | mark.dickinson | link | issue8300 messages |
2010-04-03 13:57:06 | mark.dickinson | create | |
|