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
.
python
/
pythoncapi-compat
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
39
Star
109
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
pythoncapi-compat
pythoncapi_compat.h
on
main
User selector
All users
All time
Commit history
Commits on Mar 19, 2026
PyUnicodeWriter_WriteRepr(NULL) now writes "<NULL>" (#170)
vstinner
authored
75a7967
View commit details
Copy full SHA for 75a7967
View code at this point
Browse repository at this point
Commits on Feb 12, 2026
Build C and C++ extensions with /W4 on Windows (#168)
Show description for f6121eb
vstinner
authored
f6121eb
View commit details
Copy full SHA for f6121eb
View code at this point
Browse repository at this point
Add PyUnstable_SetImmortal() (#164)
Show description for 8636bcc
kumaraditya303
and
vstinner
authored
8636bcc
View commit details
Copy full SHA for 8636bcc
View code at this point
Browse repository at this point
Commits on Nov 8, 2025
Don't include structmember.h in pythoncapi_compat.h (#161)
Show description for 11cb80f
colesbury
authored
11cb80f
View commit details
Copy full SHA for 11cb80f
View code at this point
Browse repository at this point
Commits on Nov 7, 2025
Avoid "most vexing parse" warning in certain versions of NVCC (#162)
colesbury
authored
e3efede
View commit details
Copy full SHA for e3efede
View code at this point
Browse repository at this point
Commits on Nov 5, 2025
Remove trailing whitespace (#160)
colesbury
authored
44c8e14
View commit details
Copy full SHA for 44c8e14
View code at this point
Browse repository at this point
Add PyUnstable_TryIncref() and PyUnstable_EnableTryIncRef() (#159)
Show description for c44469c
colesbury
and
vstinner
authored
c44469c
View commit details
Copy full SHA for c44469c
View code at this point
Browse repository at this point
Commits on Oct 15, 2025
Make PyUnstable_Unicode_GET_CACHED_HASH return -1 on PyPy (#157)
Show description for e510a7b
encukou
and
vstinner
authored
e510a7b
View commit details
Copy full SHA for e510a7b
View code at this point
Browse repository at this point
Commits on Oct 14, 2025
PyConfig_Get() is also available on Python 3.8 (#156)
vstinner
authored
6c77b6b
View commit details
Copy full SHA for 6c77b6b
View code at this point
Browse repository at this point
Add PyUnstable_Unicode_GET_CACHED_HASH() function (#155)
vstinner
authored
a49e0fb
View commit details
Copy full SHA for a49e0fb
View code at this point
Browse repository at this point
Add PyTuple_FromArray() function (#154)
vstinner
authored
89e023e
View commit details
Copy full SHA for 89e023e
View code at this point
Browse repository at this point
Commits on Oct 3, 2025
Fix varargs indicator for PyBytesWriter_Format (#153)
amolenaar
authored
22811c3
View commit details
Copy full SHA for 22811c3
View code at this point
Browse repository at this point
Fix compiler warnings for PyBytesWriter_Format (#152)
amolenaar
authored
97f1582
View commit details
Copy full SHA for 97f1582
View code at this point
Browse repository at this point
Commits on Sep 18, 2025
PEP 782: Add PyBytesWriter C API (#139)
vstinner
authored
ab72af8
View commit details
Copy full SHA for ab72af8
View code at this point
Browse repository at this point
Commits on Sep 1, 2025
Add PyUnstable_Object_IsUniquelyReferenced (#149)
ngoldbaum
authored
90c06a4
View commit details
Copy full SHA for 90c06a4
View code at this point
Browse repository at this point
Commits on Jun 24, 2025
Avoid %T format in error message (#146)
Show description for b541b98
vstinner
authored
b541b98
View commit details
Copy full SHA for b541b98
View code at this point
Browse repository at this point
Commits on Jun 9, 2025
Add PyUnicodeWriter_WriteASCII() (#145)
vstinner
authored
ffae0ff
View commit details
Copy full SHA for ffae0ff
View code at this point
Browse repository at this point
Commits on Jun 3, 2025
Add PySys_GetAttr() function (#143)
vstinner
authored
fde4d34
View commit details
Copy full SHA for fde4d34
View code at this point
Browse repository at this point
Commits on Feb 18, 2025
Don't redefine _Py_NULL macro if already defined (#138)
Show description for 632d1aa
vstinner
authored
632d1aa
View commit details
Copy full SHA for 632d1aa
View code at this point
Browse repository at this point
Commits on Jan 28, 2025
Closes #136: Replace extern with PyAPI_FUNC() (#137)
vstinner
authored
c84545f
View commit details
Copy full SHA for c84545f
View code at this point
Browse repository at this point
Commits on Jan 26, 2025
Avoid Py_ARRAY_LENGTH() (#134)
Show description for 4c53701
vstinner
authored
4c53701
View commit details
Copy full SHA for 4c53701
View code at this point
Browse repository at this point
Fix multiple definitions for Py_fclose (#130)
cdce8p
authored
d24c201
View commit details
Copy full SHA for d24c201
View code at this point
Browse repository at this point
GHA: Test more Python versions on macOS/Windows (#132)
Show description for 03043e3
vstinner
authored
03043e3
View commit details
Copy full SHA for 03043e3
View code at this point
Browse repository at this point
Commits on Jan 19, 2025
Add PyConfig_Get() (#128)
vstinner
authored
8a52253
View commit details
Copy full SHA for 8a52253
View code at this point
Browse repository at this point
Optimize PyWeakref_GetRef() (#129)
vstinner
authored
b1b2071
View commit details
Copy full SHA for b1b2071
View code at this point
Browse repository at this point
Commits on Jan 6, 2025
Add Py_fopen() and Py_fclose() (#127)
vstinner
authored
79404e9
View commit details
Copy full SHA for 79404e9
View code at this point
Browse repository at this point
Commits on Dec 16, 2024
Add structmember.h constants (#126)
vstinner
authored
7eb512b
View commit details
Copy full SHA for 7eb512b
View code at this point
Browse repository at this point
Commits on Dec 13, 2024
Add PyLong Import/Export API (#121)
Show description for 61709bf
skirpichev
and
vstinner
authored
61709bf
View commit details
Copy full SHA for 61709bf
View code at this point
Browse repository at this point
Commits on Nov 19, 2024
prepare for pypy3.11 release (#123)
mattip
authored
0f1d42a
View commit details
Copy full SHA for 0f1d42a
View code at this point
Browse repository at this point
Commits on Nov 15, 2024
Relax PYPY_VERSION_NUM requirements for hash macros (#122)
Show description for 03e441d
skirpichev
authored
03e441d
View commit details
Copy full SHA for 03e441d
View code at this point
Browse repository at this point
Commits on Nov 12, 2024
Add PyLong_IsPositive/Negative/Zero() functions (#119)
Show description for 77abeec
skirpichev
and
vstinner
authored
77abeec
View commit details
Copy full SHA for 77abeec
View code at this point
Browse repository at this point
Commits on Oct 17, 2024
Update link to latest version (#118)
cdce8p
authored
0041177
View commit details
Copy full SHA for 0041177
View code at this point
Browse repository at this point
Commits on Oct 14, 2024
Fix 'redefinition; different linkage' errors with cp313-win (#115)
cdce8p
authored
6d8c17a
View commit details
Copy full SHA for 6d8c17a
View code at this point
Browse repository at this point
Commits on Oct 9, 2024
Add PyLong_FromUInt64() and PyLong_AsUInt64() (#114)
vstinner
authored
669c882
View commit details
Copy full SHA for 669c882
View code at this point
Browse repository at this point
Add PyIter_NextItem() function (#113)
vstinner
authored
38e2d32
View commit details
Copy full SHA for 38e2d32
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.