Message102262
| Author |
mark.dickinson |
| Recipients |
mark.dickinson, meador.inge |
| Date |
2010年04月03日.13:57:05 |
| SpamBayes Score |
1.0367366e-05 |
| Marked as misclassified |
No |
| Message-id |
<1270303029.02.0.885523101722.issue8300@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|