{"id":13399901,"url":"https://github.com/python/cpython","last_synced_at":"2025-05-12T17:43:09.586Z","repository":{"id":37239454,"uuid":"81598961","full_name":"python/cpython","owner":"python","description":"The Python programming language","archived":false,"fork":false,"pushed_at":"2025-05-12T15:22:55.000Z","size":695310,"stargazers_count":66916,"open_issues_count":9094,"forks_count":31856,"subscribers_count":1522,"default_branch":"main","last_synced_at":"2025-05-12T15:35:32.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.python.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":".github/CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://www.python.org/psf/donations/python-dev/","github":["python"]}},"created_at":"2017-02-10T19:23:51.000Z","updated_at":"2025-05-12T15:23:03.000Z","dependencies_parsed_at":"2023-12-18T18:44:05.891Z","dependency_job_id":"daca1c05-6154-4891-9dd0-0397bc5ccac2","html_url":"https://github.com/python/cpython","commit_stats":{"total_commits":111581,"total_committers":3071,"mean_commits":36.3337675024422,"dds":0.9002249486919816,"last_synced_commit":"9944ad388c457325456152257b977410c4ec3593"},"previous_names":[],"tags_count":611,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python%2Fcpython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python%2Fcpython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python%2Fcpython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python%2Fcpython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python","download_url":"https://codeload.github.com/python/cpython/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253768989,"owners_count":21961459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:44.832Z","updated_at":"2025-05-12T17:43:08.385Z","avatar_url":"https://github.com/python.png","language":"Python","readme":"This is Python version 3.15.0 alpha 0\n=====================================\n\n.. image:: https://github.com/python/cpython/actions/workflows/build.yml/badge.svg?branch=main\u0026event=push\n   :alt: CPython build status on GitHub Actions\n   :target: https://github.com/python/cpython/actions\n\n.. image:: https://dev.azure.com/python/cpython/_apis/build/status/Azure%20Pipelines%20CI?branchName=main\n   :alt: CPython build status on Azure DevOps\n   :target: https://dev.azure.com/python/cpython/_build/latest?definitionId=4\u0026branchName=main\n\n.. image:: https://img.shields.io/badge/discourse-join_chat-brightgreen.svg\n   :alt: Python Discourse chat\n   :target: https://discuss.python.org/\n\n\nCopyright © 2001 Python Software Foundation.  All rights reserved.\n\nSee the end of this file for further copyright and license information.\n\n.. contents::\n\nGeneral Information\n-------------------\n\n- Website: https://www.python.org\n- Source code: https://github.com/python/cpython\n- Issue tracker: https://github.com/python/cpython/issues\n- Documentation: https://docs.python.org\n- Developer's Guide: https://devguide.python.org/\n\nContributing to CPython\n-----------------------\n\nFor more complete instructions on contributing to CPython development,\nsee the `Developer Guide`_.\n\n.. _Developer Guide: https://devguide.python.org/\n\nUsing Python\n------------\n\nInstallable Python kits, and information about using Python, are available at\n`python.org`_.\n\n.. _python.org: https://www.python.org/\n\nBuild Instructions\n------------------\n\nOn Unix, Linux, BSD, macOS, and Cygwin::\n\n    ./configure\n    make\n    make test\n    sudo make install\n\nThis will install Python as ``python3``.\n\nYou can pass many options to the configure script; run ``./configure --help``\nto find out more.  On macOS case-insensitive file systems and on Cygwin,\nthe executable is called ``python.exe``; elsewhere it's just ``python``.\n\nBuilding a complete Python installation requires the use of various\nadditional third-party libraries, depending on your build platform and\nconfigure options.  Not all standard library modules are buildable or\nusable on all platforms.  Refer to the\n`Install dependencies \u003chttps://devguide.python.org/getting-started/setup-building.html#build-dependencies\u003e`_\nsection of the `Developer Guide`_ for current detailed information on\ndependencies for various Linux distributions and macOS.\n\nOn macOS, there are additional configure and build options related\nto macOS framework and universal builds.  Refer to `Mac/README.rst\n\u003chttps://github.com/python/cpython/blob/main/Mac/README.rst\u003e`_.\n\nOn Windows, see `PCbuild/readme.txt\n\u003chttps://github.com/python/cpython/blob/main/PCbuild/readme.txt\u003e`_.\n\nTo build Windows installer, see `Tools/msi/README.txt\n\u003chttps://github.com/python/cpython/blob/main/Tools/msi/README.txt\u003e`_.\n\nIf you wish, you can create a subdirectory and invoke configure from there.\nFor example::\n\n    mkdir debug\n    cd debug\n    ../configure --with-pydebug\n    make\n    make test\n\n(This will fail if you *also* built at the top-level directory.  You should do\na ``make clean`` at the top-level first.)\n\nTo get an optimized build of Python, ``configure --enable-optimizations``\nbefore you run ``make``.  This sets the default make targets up to enable\nProfile Guided Optimization (PGO) and may be used to auto-enable Link Time\nOptimization (LTO) on some platforms.  For more details, see the sections\nbelow.\n\nProfile Guided Optimization\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nPGO takes advantage of recent versions of the GCC or Clang compilers.  If used,\neither via ``configure --enable-optimizations`` or by manually running\n``make profile-opt`` regardless of configure flags, the optimized build\nprocess will perform the following steps:\n\nThe entire Python directory is cleaned of temporary files that may have\nresulted from a previous compilation.\n\nAn instrumented version of the interpreter is built, using suitable compiler\nflags for each flavor. Note that this is just an intermediary step.  The\nbinary resulting from this step is not good for real-life workloads as it has\nprofiling instructions embedded inside.\n\nAfter the instrumented interpreter is built, the Makefile will run a training\nworkload.  This is necessary in order to profile the interpreter's execution.\nNote also that any output, both stdout and stderr, that may appear at this step\nis suppressed.\n\nThe final step is to build the actual interpreter, using the information\ncollected from the instrumented one.  The end result will be a Python binary\nthat is optimized; suitable for distribution or production installation.\n\n\nLink Time Optimization\n^^^^^^^^^^^^^^^^^^^^^^\n\nEnabled via configure's ``--with-lto`` flag.  LTO takes advantage of the\nability of recent compiler toolchains to optimize across the otherwise\narbitrary ``.o`` file boundary when building final executables or shared\nlibraries for additional performance gains.\n\n\nWhat's New\n----------\n\nWe have a comprehensive overview of the changes in the `What's New in Python\n3.14 \u003chttps://docs.python.org/3.14/whatsnew/3.14.html\u003e`_ document.  For a more\ndetailed change log, read `Misc/NEWS\n\u003chttps://github.com/python/cpython/tree/main/Misc/NEWS.d\u003e`_, but a full\naccounting of changes can only be gleaned from the `commit history\n\u003chttps://github.com/python/cpython/commits/main\u003e`_.\n\nIf you want to install multiple versions of Python, see the section below\nentitled \"Installing multiple versions\".\n\n\nDocumentation\n-------------\n\n`Documentation for Python 3.14 \u003chttps://docs.python.org/3.14/\u003e`_ is online,\nupdated daily.\n\nIt can also be downloaded in many formats for faster access.  The documentation\nis downloadable in HTML, PDF, and reStructuredText formats; the latter version\nis primarily for documentation authors, translators, and people with special\nformatting requirements.\n\nFor information about building Python's documentation, refer to `Doc/README.rst\n\u003chttps://github.com/python/cpython/blob/main/Doc/README.rst\u003e`_.\n\n\nTesting\n-------\n\nTo test the interpreter, type ``make test`` in the top-level directory.  The\ntest set produces some output.  You can generally ignore the messages about\nskipped tests due to optional features which can't be imported.  If a message\nis printed about a failed test or a traceback or core dump is produced,\nsomething is wrong.\n\nBy default, tests are prevented from overusing resources like disk space and\nmemory.  To enable these tests, run ``make buildbottest``.\n\nIf any tests fail, you can re-run the failing test(s) in verbose mode.  For\nexample, if ``test_os`` and ``test_gdb`` failed, you can run::\n\n    make test TESTOPTS=\"-v test_os test_gdb\"\n\nIf the failure persists and appears to be a problem with Python rather than\nyour environment, you can `file a bug report\n\u003chttps://github.com/python/cpython/issues\u003e`_ and include relevant output from\nthat command to show the issue.\n\nSee `Running \u0026 Writing Tests \u003chttps://devguide.python.org/testing/run-write-tests.html\u003e`_\nfor more on running tests.\n\nInstalling multiple versions\n----------------------------\n\nOn Unix and Mac systems if you intend to install multiple versions of Python\nusing the same installation prefix (``--prefix`` argument to the configure\nscript) you must take care that your primary python executable is not\noverwritten by the installation of a different version.  All files and\ndirectories installed using ``make altinstall`` contain the major and minor\nversion and can thus live side-by-side.  ``make install`` also creates\n``${prefix}/bin/python3`` which refers to ``${prefix}/bin/python3.X``.  If you\nintend to install multiple versions using the same prefix you must decide which\nversion (if any) is your \"primary\" version.  Install that version using\n``make install``.  Install all other versions using ``make altinstall``.\n\nFor example, if you want to install Python 2.7, 3.6, and 3.14 with 3.14 being the\nprimary version, you would execute ``make install`` in your 3.14 build directory\nand ``make altinstall`` in the others.\n\n\nRelease Schedule\n----------------\n\nSee `PEP 745 \u003chttps://peps.python.org/pep-0745/\u003e`__ for Python 3.14 release details.\n\n\nCopyright and License Information\n---------------------------------\n\n\nCopyright © 2001 Python Software Foundation.  All rights reserved.\n\nCopyright © 2000 BeOpen.com.  All rights reserved.\n\nCopyright © 1995-2001 Corporation for National Research Initiatives.  All\nrights reserved.\n\nCopyright © 1991-1995 Stichting Mathematisch Centrum.  All rights reserved.\n\nSee the `LICENSE \u003chttps://github.com/python/cpython/blob/main/LICENSE\u003e`_ for\ninformation on the history of this software, terms \u0026 conditions for usage, and a\nDISCLAIMER OF ALL WARRANTIES.\n\nThis Python distribution contains *no* GNU General Public License (GPL) code,\nso it may be used in proprietary projects.  There are interfaces to some GNU\ncode but these are entirely optional.\n\nAll trademarks referenced herein are property of their respective holders.","funding_links":["https://www.python.org/psf/donations/python-dev/","https://github.com/sponsors/python"],"categories":["Python","Projects with already integrated PGO into their build scripts","Mainstream implementations","Implementations","HarmonyOS","others","Python internals","高性能","Containers \u0026 Language Extentions \u0026 Linting","实现","Programming Languages :sunglasses:","playground list","Python 程序","Repos","Back-End Development","Python Implementations","Implementations [🔝](#readme)","Multi paradigm","Awesome Python"],"sub_categories":["Other","Windows Manager","Manual analysis","For Python","Frequently Used","Python","Other dialects and variants","网络服务_其他","Implementations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython%2Fcpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython%2Fcpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython%2Fcpython/lists"}