gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` by sobolevn · Pull Request #99283 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

sobolevn:issue-99275

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

No exception set but raise SystemError when setting _fields_ of ctypes.Structure in __init_subclass__ #99275

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__`

[ctypes] Do we still need _use_broken_old_ctypes_structure_semantics_? #99284

View reviewed changes

needs backport to 3.10

needs backport to 3.10

needs backport to 3.11

needs backport to 3.11

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283) (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <[email protected]>

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283) (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <[email protected]>

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283) (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <[email protected]>

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283) (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <[email protected]>