GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-128715: CTypeField: Put intness, signedness and pointerness in flags by encukou · Pull Request #138541 · python/cpython

Conversation

@encukou

@encukou encukou commented Sep 5, 2025

Copy link
Copy Markdown
Member

A bit more refactoring for gh-128715: use flags instead of some of the switch cases that need to list every type code with some property.

Also simplify code that went through _ctypes_get_fielddesc to get a function defined in the same file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
encukou added 3 commits September 5, 2025 15:02
@encukou
Put intness, signedness and pointerness in flags
249dda0
This moves pointerness out of a switch :)
@encukou
Remove local uses of _ctypes_get_fielddesc; use the functions directly
e6f593e
@encukou
Use the TYPEFLAG_IS_INTEGER flag
fead2f1
@bedevere-app bedevere-app Bot added the awaiting core review label Sep 5, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Sep 5, 2025
Untangle ctypes bitfield size and expose field information #128715
Open
@encukou encukou added the skip news label Sep 5, 2025
@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 29, 2026
encukou added 2 commits October 13, 2026 15:07
@encukou
Merge in the main branch
fd79a28
@encukou
Avoid warning on smaller type
740a7bc
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 13, 2026
@encukou

encukou commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

@ZeroIntensity: This is about where I left off last year, moving ctypes type information from switches to data values so that it can later be exposed and/or generalized.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting core review skip news type-feature A feature request or enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@encukou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.