This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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)
History
Date User Action Args
2011-07-12 02:50:20vladrissetrecipients: + vladris, theller, terry.reedy, vstinner, castironpi, Alexander.Belopolsky, Jake.Coffman
2011-07-12 02:50:20vladrissetmessageid: <1310439020.75.0.664665366285.issue4376@psf.upfronthosting.co.za>
2011-07-12 02:50:20vladrislinkissue4376 messages
2011-07-12 02:50:20vladriscreate