Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-100980: ctypes: Test, document, and fix finalizing _fields_#124292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
encukou merged 4 commits intopython:mainfromencukou:gh-100980
Sep 24, 2024

Conversation

@encukou
Copy link
Member

@encukouencukou commentedSep 20, 2024
edited by github-actionsbot
Loading

  • If setting_fields_ fails, e.g. with AttributeError, don't set the attribute in__dict__
  • Document the “finalization” behaviour
  • Beef up tests: addgetattr, test Union as well as Structure
  • Put common functionality in a common function

P.S.del X._fields_ is still allowed; preventing that is out of scope of this change. Like mutating the list, it doesn't have an effect. (_fields_ is read once, when the class is finalized, and not consulted again.)


📚 Documentation preview 📚:https://cpython-previews--124292.org.readthedocs.build/

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@encukouencukou merged commitbe76e3f intopython:mainSep 24, 2024
33 checks passed
@encukouencukou deleted the gh-100980 branchSeptember 24, 2024 00:40
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ZeroIntensityZeroIntensityZeroIntensity left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@encukou@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp