GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pythoncapi/cpython: The Python programming language

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

102,174 Commits
102,174 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vsts
.vsts
 
 
Doc
Doc
 
 
Grammar
Grammar
 
 
Include
Include
 
 
Lib
Lib
 
 
Mac
Mac
 
 
Misc
Misc
 
 
Modules
Modules
 
 
Objects
Objects
 
 
PC
PC
 
 
PCbuild
PCbuild
 
 
Parser
Parser
 
 
Programs
Programs
 
 
Python
Python
 
 
Tools
Tools
 
 
capi_tests
capi_tests
 
 
m4
m4
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CODE_OF_CONDUCT.rst
CODE_OF_CONDUCT.rst
 
 
LICENSE
LICENSE
 
 
Makefile.pre.in
Makefile.pre.in
 
 
README.rst
README.rst
 
 
TODO.rst
TODO.rst
 
 
aclocal.m4
aclocal.m4
 
 
config.guess
config.guess
 
 
config.sub
config.sub
 
 
configure
configure
 
 
configure.ac
configure.ac
 
 
install-sh
install-sh
 
 
pyconfig.h.in
pyconfig.h.in
 
 
setup.py
setup.py
 
 

Repository files navigation

Design a new better C API for Python

This project is a fork of the development version of the future CPython 3.8. The intent is to experiment to implement the new C API described at:

https://pythoncapi.readthedocs.io/

Install dependencies on Fedora:

dnf install -y make gcc check

Build and run unit tests:

./configure --enable-shared --with-pydebug
make
cd capi_tests
make  # only test Py_NEWCAPI
# or to run the full test matrix: make testmatrix

If you want to help, look at TODO.rst.

The changes live in the pythoncapi branch.

New C API defines:

  • Py_NEWCAPI_NO_MACRO: replace macros with function calls PyTuple_GET_SIZE() becomes PyTuple_Size()
  • Py_NEWCAPI_NO_STRUCT: must not use PyObject.ob_refcnt or any other field of Python object structures; structures should hide their fields: compilation error.
  • Py_NEWCAPI: new C API without borrowed references, without macro, without struct

Related defines:

  • Py_NEWCAPI_BORROWED_REF: declare functions/macros using borrowed references -- enabled by Py_NEWCAPI_NO_MACRO and Py_NEWCAPI_NO_STRUCT, but not by Py_NEWCAPI.

See also:

  • github.com/pythoncapi/cpython
  • capi-sig mailing list

About

The Python programming language

www.python.org/

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.