diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-09-24 02:40:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 02:40:53 +0200 |
commit | be76e3f26e0b907f711497d006b8b83bff04c036 (patch) | |
tree | 4895db53ed181dc2baab260a7655fed614697dac /Objects/tupleobject.c | |
parent | e256a7590a0149feadfef161ed000991376dc0e8 (diff) | |
download | cpython-be76e3f26e0b907f711497d006b8b83bff04c036.tar.gz cpython-be76e3f26e0b907f711497d006b8b83bff04c036.zip |
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>
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions