Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
pybind
/
pybind11
Public
Notifications
You must be signed in to change notification settings
Fork
2.3k
Star
18k
Code
Issues
570
Pull requests
142
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Add helpers to array that return the size and strides as a std::span
- #5974
#5974
Merged
rwgk
merged 6 commits into
pybind:master
pybind/pybind11:master
from
dbs4261:span_helpers
dbs4261/pybind11:span_helpers
Copy head branch name to clipboard
Feb 8, 2026
Conversation
Commits
6
(6)
Checks
Files changed
Merged
Add helpers to array that return the size and strides as a std::span
#5974
rwgk
merged 6 commits into
pybind:master
pybind/pybind11:master
from
dbs4261:span_helpers
dbs4261/pybind11:span_helpers
Copy head branch name to clipboard
Commits
Commits on Jan 26, 2026
Add helper functions to pybind11::array to return the shape and strides as a std::span. These functions are hidden with macros unless PYBIND11_CPP20 is defined and the <span> include has been found.
dbs4261
committed
f880da4
View commit details
Copy full SHA for f880da4
Browse repository at this point
style: pre-commit fixes
pre-commit-ci[bot]
committed
341d5ad
View commit details
Copy full SHA for 341d5ad
Browse repository at this point
Commits on Jan 29, 2026
tests: Add unit tests for shape_span() and strides_span()
Show description for 6847f18
rwgk
committed
6847f18
View commit details
Copy full SHA for 6847f18
Browse repository at this point
Commits on Feb 2, 2026
Merge branch 'master' into dbs4261→span_helpers
rwgk
committed
6b6f0fe
View commit details
Copy full SHA for 6b6f0fe
Browse repository at this point
Use __cpp_lib_span feature test macro instead of __has_include
Show description for e9de405
rwgk
and
cursoragent
committed
e9de405
View commit details
Copy full SHA for e9de405
Browse repository at this point
Fix: Use py::ssize_t instead of ssize_t in span tests
Show description for 12653f2
rwgk
and
cursoragent
committed
12653f2
View commit details
Copy full SHA for 12653f2
Browse repository at this point
You can’t perform that action at this time.