Contents Menu Expand Light mode Dark mode Auto light/dark mode
Python Developer's Guide
Logo
Python Developer's Guide
  • Getting Started
    • Setup and Building
    • Fixing “easy” Issues (and Beyond)
    • Git Bootcamp and Cheat Sheet
    • Lifecycle of a Pull Request
    • Where to Get Help
  • Development Workflow
    • Following Python’s Development
    • Development Cycle
    • Adding to the Stdlib
    • Standard Library Extension Modules
    • Changing Python’s C API
    • Changing the Python Language
    • Changing CPython’s Grammar
    • Porting to a New Platform
  • Issues and Triaging
    • Issue Tracker
    • Triaging an Issue
    • GitHub Labels
    • GitHub Issues for BPO Users
    • Triage Team
  • Documentation
    • Getting Started
    • Helping with Documentation
    • Style Guide
    • reStructuredText Markup
    • Translating
    • Helping with the Developer’s Guide
  • Testing and Buildbots
    • Running and Writing Tests
    • Silence Warnings From the Test Suite
    • Increase Test Coverage
    • Working with Buildbots
    • New Buildbot Workers
  • Core Developers
    • Responsibilities
    • Accepting Pull Requests
    • Experts Index
    • Developer Log
    • Motivations and Affiliations
    • How to Become a Core Developer
  • CPython’s Internals
    • Exploring the Internals
    • Guide to the Parser
    • Compiler Design
    • The Bytecode Interpreter (3.11)
    • Garbage Collector Design
  • Advanced Tools
    • GDB support
    • Dynamic Analysis with Clang
    • Coverity Scan
  • Status of Python Versions
Back to top
Edit this page

Standard Library Extension Modules#

In this section, we could explain how to write a CPython extension with the C language, but the topic can take a complete book.

For this reason, we prefer to give you some links where you can read a very good documentation.

Read the following references:

  • https://docs.python.org/dev/c-api/

  • https://docs.python.org/dev/extending/

  • PEP 399

  • https://pythonextensionpatterns.readthedocs.io/en/latest/

Next
Changing Python’s C API
Previous
Adding to the Stdlib
Copyright © 2011-2023, Python Software Foundation
Made with Sphinx and @pradyunsg's Furo