bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0 by eric-wieser · Pull Request #5576 · python/cpython · GitHub

github.com

Tin mới

eric-wieser:ctypes-empty-array-itemsize

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

BUG: np.dtype(ctype) does not respect endianness numpy/numpy#10533

WIP: Remove fragile use of __array_interface__ in ctypeslib.as_array numpy/numpy#10970

bpo-21983: Fix a crash in ctypes.cast() in case the type argument is a ctypes structured data type. #3859

Test failures TestNewBufferProtocol.test_error_too_many_dims numpy/numpy#11115

View reviewed changes

awaiting core review

BUG: np.dtype(ctypes.Structure) does not respect _pack_ field numpy/numpy#10532

needs backport to 3.7

Merge branch 'main' into ctypes-empty-array-itemsize

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

🔨 test-with-refleak-buildbots

Merge branch 'main' into ctypes-empty-array-itemsize

memoryview & ctypes: incorrect itemsize for empty array #76963

needs backport to 3.10

needs backport to 3.11

: PEP3118 itemsize of an empty ctypes array should not …

: PEP3118 itemsize of an empty ctypes array should not …

: PEP3118 itemsize of an empty ctypes array should not…

: PEP3118 itemsize of an empty ctypes array should not…

Merged main into regmachine branch (

gh-76961: Fix the PEP3118 format string for ctypes.Structure #5561