◐ Shell
clean mode source ↗

gh-141004: Document Py_ARRAY_LENGTH macro by Yashp002 · Pull Request #141601 · python/cpython

Added documentation for the Py_ARRAY_LENGTH macro, explaining its usage and requirements.

@Yashp002

@StanFromIreland StanFromIreland changed the title Document Py_ARRAY_LENGTH macro in intro.rst gh-141004: Document Py_ARRAY_LENGTH macro in intro.rst

Nov 15, 2025

StanFromIreland

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

StanFromIreland

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

picnixz

@picnixz picnixz changed the title gh-141004: Document Py_ARRAY_LENGTH macro in intro.rst gh-141004: Document Py_ARRAY_LENGTH macro

Nov 16, 2025
Removed redundant explanation of array size calculation.

picnixz

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

ZeroIntensity

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
I realize that VLAs also don't have a known size at compile-time.

ZeroIntensity

vstinner

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Nov 24, 2025
(cherry picked from commit e0773ea)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Nov 24, 2025
(cherry picked from commit e0773ea)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

ZeroIntensity added a commit that referenced this pull request

Nov 24, 2025
gh-141004: Document `Py_ARRAY_LENGTH` (GH-141601)
(cherry picked from commit e0773ea)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

ZeroIntensity added a commit that referenced this pull request

Nov 24, 2025
gh-141004: Document `Py_ARRAY_LENGTH` (GH-141601)
(cherry picked from commit e0773ea)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request

Dec 6, 2025
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request

Dec 8, 2025
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>