Message140172
| Author |
vladris |
| Recipients |
Alexander.Belopolsky, Jake.Coffman, castironpi, terry.reedy, theller, vladris, vstinner |
| Date |
2011年07月12日.02:50:19 |
| SpamBayes Score |
4.6020576e-11 |
| Marked as misclassified |
No |
| Message-id |
<1310439020.75.0.664665366285.issue4376@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Also added diff for fix:
- Implemented proposed issubclass(typ, Structure) solution
- Refactored _other_endian function because we used to getattr, catch exception, then check if type is array/structure. I believe exception throwing should not be on normal code path so I replaced try-except with a check for hasattr
- Removed a unittest which becomes deprecated with this fix (unittest asserts getting _other_endian for nested struct raises exception which is no longer the case) |
|