Quick reference - Python Developer's Guide
Jun 25, 2026 ... git clone https://github.com/<your_username>/cpython cd cpython. For detailed information, see “Get the source code”. Build Python¶. Unix.
Jun 25, 2026 ... git clone https://github.com/<your_username>/cpython cd cpython. For detailed information, see “Get the source code”. Build Python¶. Unix.
If you want to install these optional dependencies, consult the Install dependencies section below. If you don’t need to install them, the basic steps for building Python for development is to configure it and then compile it. Configuration is typically
Aug 22, 2026 · Renaming branch ¶ The CPython repository’s default branch was renamed from master to main after the Python 3.10b1 release. If you have a fork on GitHub (as described in Forking CPython GitHub repository) that was created before the rename, you should visit the GitHub page for your fork to rename the branch there. You only have to do this once.
Oct 21, 2026 · Lifecycle of a pull request ¶ Introduction ¶ CPython uses a workflow based on pull requests. What this means is that you create a branch in Git, make your changes, push those changes to your fork on GitHub (origin), and then create a pull request against the official CPython repository (upstream). For a cheat-sheet reference, see the quick reference on creating pull requests. Step-by-step ...
Jun 25, 2026 ... Setup and building · Install Git · Get the source code · Install pre-commit as a Git hook · Compile and build · Unix · Clang · Optimization.
Skip to content. Python Developer's Guide. Logo.Reviewing pull requests. Finding an issue you can help with. GitHub labels.
Oct 23, 2026 ... Code example bodies should use normal Python 4-space indentation. ... example if the documentation for different attributes and methods is split ...
Jul 15, 2026 · For a small change, you can make a quick edit through the GitHub web UI. If you choose to use the web UI, be aware that GitHub will create a new branch in the main CPython repository rather than in your fork. Delete this newly created branch after it has been merged into the main branch or any of the maintenance branches.
Oct 23, 2026 · An example of when not to use a code equivalent is for the oct () function. The exact steps in converting a number to octal don’t add value for a user trying to learn what the function does.