| Feb |
MAR |
Apr |
|
12 |
|
| 2020 |
2021 |
2022 |
About this capture
The Wayback Machine - http://web.archive.org/web/20210312214137/https://github.com/python/cpython
Skip to content
Sign up
Sign up
●
Features →
●Mobile →
●Actions →
●Codespaces →
●Packages →
●Security →
●Code review →
●Project management →
●Integrations →
●GitHub Sponsors →
●Customer stories→
●
●
●
●Explore GitHub →
Learn and contribute
●Topics →
●Collections →
●Trending →
●Learning Lab →
●Open source guides →
Connect with others
●The ReadME Project →
●Events →
●Community forum →
●GitHub Education →
●GitHub Stars program →
●
●
Plans →
●Compare plans →
●Contact Sales →
●Nonprofit →
●Education →
In this repository
All GitHub
↵
Jump to
↵
-
No suggested jump to results
{{ message }}
●
Sponsor python/cpython
●
Notifications
●
Star
36.6k
●
Fork
18.1k
The Python programming language
www.python.org/
View license
36.6k
stars
18.1k
forks
Star
Notifications
●
Code
●
Pull requests
1.5k
●
Actions
●
Security
●
Insights
More
●
Code
●
Pull requests
●
Actions
●
Security
●
Insights
Nothing to show
ranches
Nothing to show
7
branches
465
tags
Go to file
Code
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI.
Learn more.
●
Open with GitHub Desktop
●
Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio
If nothing happens, download the GitHub extension for Visual Studio and try again.
Latest commit
pitrou
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
ba251c2
Mar 11, 2021
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Also introduce a new C API ``PyErr_SetInterruptEx(int signum)``.
ba251c2
Git stats
●
109,271
commits
Files
Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
.azure-pipelines
bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)
Jan 25, 2021
.github
Pin test runner to Ubuntu 18 to un-break CI (#24715)
Mar 3, 2021
Doc
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
Grammar
bpo-42128
Co-authored-by: Talin
Co-authored-by: Pablo Galindo " class="Link--secondary" href="/web/20210312214137/https://github.com/python/cpython/commit/145bf269df3530176f6ebeab1324890ef7070bf8">: Structural Pattern Matching (PEP 634) (GH-22917
Co-authored-by: Talin
Co-authored-by: Pablo Galindo " class="Link--secondary" href="/web/20210312214137/https://github.com/python/cpython/commit/145bf269df3530176f6ebeab1324890ef7070bf8">)
Feb 26, 2021
Include
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
Lib
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
Mac
targeting" class="Link--secondary" href="/web/20210312214137/https://github.com/python/cpython/commit/8c9453b5759f7ab86a01fab13b03cef5900eb328">Fix typo in Mac/README.rst (#24682 targeting" class="Link--secondary" href="/web/20210312214137/https://github.com/python/cpython/commit/8c9453b5759f7ab86a01fab13b03cef5900eb328">)
Mar 1, 2021
Misc
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
Modules
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
Objects
bpo-42128: Add __match_args__ to structseq-based classes (GH-24732)
Mar 4, 2021
PC
bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755)
Mar 11, 2021
PCbuild
bpo-43440 : Enable SQLite R*Tree support for windows builds (GH-24797)
Mar 9, 2021
Parser
bpo-11717: fix ssize_t redefinition error when targeting 32bit Window…
Mar 1, 2021
Programs
bpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798)
Mar 10, 2021
Python
bpo-43311: Create GIL autoTSSkey ealier (GH-24819)
Mar 10, 2021
Tools
bpo-43456: Remove _xxsubinterpreters from sys.stdlib_module_names (GH…
Mar 10, 2021
m4
bpo-38527: fix configure script for Solaris (GH-16845)
Apr 1, 2020
.gitattributes
bpo-42084: Language aware diff headers (GH-22776)
Oct 19, 2020
.gitignore
Added some makefile generated files to .gitignore (GH-22435)
Oct 26, 2020
.travis.yml
bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)
Jan 25, 2021
CODE_OF_CONDUCT.md
in the url which prevented the browser from jumping down to the correct section on that page.
That PSF page itself has an error: There's a duplicate "the" in that paragraph that needs to be removed: "...and conform to **the the** Python Community Code of Conduct."
While I was editing this file, I also fixed some grammar and bolded the 3 important keywords so that they catch the viewer's eyes. I can revert these changes if they are unwanted.
Thanks." class="Link--secondary" href="/web/20210312214137/https://github.com/python/cpython/commit/44bfff2ec220f2e0291150a776d4d77af7c821ef">Fix markup and minor grammar improvements in Code_of_conduct.md (GH-1…
May 28, 2019
LICENSE
Bring Python into the new year. (GH-24036)
Jan 1, 2021
Makefile.pre.in
bpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798)
Mar 10, 2021
README.rst
Remove unused suspicious rule in the docs
Mar 1, 2021
aclocal.m4
bpo-41625: Expose the splice() system call in the os module (GH-21947)
Nov 17, 2020
config.guess
bpo-33393: Update config.guess and config.sub files (#6658)
Apr 30, 2018
config.sub
bpo-33393: Update config.guess and config.sub files (#6658)
Apr 30, 2018
configure
Remove unused suspicious rule in the docs
Mar 1, 2021
configure.ac
bpo-43103: Fix build failure with macOS framework builds. (GH-24676)
Mar 1, 2021
install-sh
bpo-34765: install-sh is executable (GH-10225)
Oct 29, 2018
netlify.toml
bpo-37860: Add netlify deploy preview for docs (GH-15288)
Aug 21, 2019
pyconfig.h.in
bpo-13501: allow choosing between readline and libedit (GH-24189)
Feb 9, 2021
setup.py
bpo-42603: Use pkg-config to get TCL/TK paths for tkinter. (GH-23721)
Mar 1, 2021
README.rst
This is Python version 3.10.0 alpha 6




Copyright (c) 2001-2021 Python Software Foundation. All rights reserved.
See the end of this file for further copyright and license information.
Contents
●General Information
●Contributing to CPython
●Using Python
●Build Instructions
●Profile Guided Optimization
●Link Time Optimization
●What's New
●Documentation
●Converting From Python 2.x to 3.x
●Testing
●Installing multiple versions
●Issue Tracker and Mailing List
●Proposals for enhancement
●Release Schedule
●Copyright and License Information
●Website: https://www.python.org
●Source code: https://github.com/python/cpython
●Issue tracker: https://bugs.python.org
●Documentation: https://docs.python.org
●Developer's Guide: https://devguide.python.org/
For more complete instructions on contributing to CPython development,
see the Developer Guide.
Installable Python kits, and information about using Python, are available at
python.org.
On Unix, Linux, BSD, macOS, and Cygwin:
./configure
make
make test
sudo make install
This will install Python as python3.
You can pass many options to the configure script; run ./configure --help
to find out more. On macOS case-insensitive file systems and on Cygwin,
the executable is called python.exe; elsewhere it's just python.
Building a complete Python installation requires the use of various
additional third-party libraries, depending on your build platform and
configure options. Not all standard library modules are buildable or
useable on all platforms. Refer to the
Install dependencies
section of the Developer Guide for current detailed information on
dependencies for various Linux distributions and macOS.
On macOS, there are additional configure and build options related
to macOS framework and universal builds. Refer to Mac/README.rst.
On Windows, see PCbuild/readme.txt.
If you wish, you can create a subdirectory and invoke configure from there.
For example:
mkdir debug
cd debug
../configure --with-pydebug
make
make test
(This will fail if you also built at the top-level directory. You should do
a make clean at the top-level first.)
To get an optimized build of Python, configure --enable-optimizations
before you run make. This sets the default make targets up to enable
Profile Guided Optimization (PGO) and may be used to auto-enable Link Time
Optimization (LTO) on some platforms. For more details, see the sections
below.
PGO takes advantage of recent versions of the GCC or Clang compilers. If used,
either via configure --enable-optimizations or by manually running
make profile-opt regardless of configure flags, the optimized build
process will perform the following steps:
The entire Python directory is cleaned of temporary files that may have
resulted from a previous compilation.
An instrumented version of the interpreter is built, using suitable compiler
flags for each flavour. Note that this is just an intermediary step. The
binary resulting from this step is not good for real life workloads as it has
profiling instructions embedded inside.
After the instrumented interpreter is built, the Makefile will run a training
workload. This is necessary in order to profile the interpreter execution.
Note also that any output, both stdout and stderr, that may appear at this step
is suppressed.
The final step is to build the actual interpreter, using the information
collected from the instrumented one. The end result will be a Python binary
that is optimized; suitable for distribution or production installation.
Enabled via configure's --with-lto flag. LTO takes advantage of the
ability of recent compiler toolchains to optimize across the otherwise
arbitrary .o file boundary when building final executables or shared
libraries for additional performance gains.
We have a comprehensive overview of the changes in the What's New in Python
3.10 document. For a more
detailed change log, read Misc/NEWS, but a full
accounting of changes can only be gleaned from the commit history.
If you want to install multiple versions of Python, see the section below
entitled "Installing multiple versions".
Documentation for Python 3.10 is online,
updated daily.
It can also be downloaded in many formats for faster access. The documentation
is downloadable in HTML, PDF, and reStructuredText formats; the latter version
is primarily for documentation authors, translators, and people with special
formatting requirements.
For information about building Python's documentation, refer to Doc/README.rst.
Significant backward incompatible changes were made for the release of Python
3.0, which may cause programs written for Python 2 to fail when run with Python
3. For more information about porting your code from Python 2 to Python 3, see
the Porting HOWTO.
To test the interpreter, type make test in the top-level directory. The
test set produces some output. You can generally ignore the messages about
skipped tests due to optional features which can't be imported. If a message
is printed about a failed test or a traceback or core dump is produced,
something is wrong.
By default, tests are prevented from overusing resources like disk space and
memory. To enable these tests, run make testall.
If any tests fail, you can re-run the failing test(s) in verbose mode. For
example, if test_os and test_gdb failed, you can run:
make test TESTOPTS="-v test_os test_gdb"
If the failure persists and appears to be a problem with Python rather than
your environment, you can file a bug report and
include relevant output from that command to show the issue.
See Running & Writing Tests
for more on running tests.
On Unix and Mac systems if you intend to install multiple versions of Python
using the same installation prefix (--prefix argument to the configure
script) you must take care that your primary python executable is not
overwritten by the installation of a different version. All files and
directories installed using make altinstall contain the major and minor
version and can thus live side-by-side. make install also creates
${prefix}/bin/python3 which refers to ${prefix}/bin/pythonX.Y. If you
intend to install multiple versions using the same prefix you must decide which
version (if any) is your "primary" version. Install that version using make
install. Install all other versions using make altinstall.
For example, if you want to install Python 2.7, 3.6, and 3.10 with 3.10 being the
primary version, you would execute make install in your 3.10 build directory
and make altinstall in the others.
Bug reports are welcome! You can use the issue tracker to report bugs, and/or submit pull requests on
GitHub.
You can also follow development discussion on the python-dev mailing list.
If you have a proposal to change Python, you may want to send an email to the
comp.lang.python or python-ideas mailing lists for initial feedback. A
Python Enhancement Proposal (PEP) may be submitted if your idea gains ground.
All current PEPs, as well as guidelines for submitting a new PEP, are listed at
python.org/dev/peps/.
See PEP 619 for Python 3.10 release details.
Copyright (c) 2001-2021 Python Software Foundation. All rights reserved.
Copyright (c) 2000 BeOpen.com. All rights reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives. All
rights reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum. All rights reserved.
See the LICENSE for
information on the history of this software, terms & conditions for usage, and a
DISCLAIMER OF ALL WARRANTIES.
This Python distribution contains noGNU General Public License (GPL) code,
so it may be used in proprietary projects. There are interfaces to some GNU
code but these are entirely optional.
All trademarks referenced herein are property of their respective holders.
About
The Python programming language
www.python.org/
Resources
Readme
License
View license
465
tags
Sponsor this project
●
https://www.python.org/psf/donations/python-dev/
Learn more about GitHub Sponsors
No packages published
+ 1,473 contributors
Languages
●
Python
63.3%
●
C
34.4%
●
C++
0.8%
●
HTML
0.4%
●
M4
0.4%
●
Batchfile
0.1%
●
Other
0.6%
●© 2021 GitHub, Inc.
●Terms
●Privacy
●Security
●Status
●Docs
●Contact GitHub
●Pricing
●API
●Training
●Blog
●About
You can’t perform that action at this time.
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.