SIGN IN SIGN UP

gh-100980: ctypes: Test, document, and fix finalizing _fields_ (GH-124292)

- If setting `_fields_` fails, e.g. with AttributeError, don't set the attribute in `__dict__`
- Document the “finalization” behaviour
- Beef up tests: add `getattr`, test Union as well as Structure
- Put common functionality in a common function

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
P
Petr Viktorin committed
be76e3f26e0b907f711497d006b8b83bff04c036
Parent: e256a75
Committed by GitHub <noreply@github.com> on 9/24/2024, 12:40:53 AM