Vlad Riscutia <riscutiav...@gmail.com> added the comment:

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)

----------
Added file: http://bugs.python.org/file22627/issue4376_fix.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to