Skip to content

Commit 9748fb3

Browse files
committed
Python 3.15.0a0
1 parent b092705 commit 9748fb3

File tree

11 files changed

+175
-17
lines changed

11 files changed

+175
-17
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ body:
4040
- "3.12"
4141
- "3.13"
4242
- "3.14"
43+
- "3.15"
4344
- "CPython main branch"
4445
validations:
4546
required: true

.github/ISSUE_TEMPLATE/crash.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ body:
3333
- "3.12"
3434
- "3.13"
3535
- "3.14"
36+
- "3.15"
3637
- "CPython main branch"
3738
validations:
3839
required: true

Doc/tutorial/interpreter.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Unix shell's search path makes it possible to start it by typing the command:
1616

1717
.. code-block:: text
1818
19-
python3.14
19+
python3.15
2020
2121
to the shell. [#]_ Since the choice of the directory where the interpreter lives
2222
is an installation option, other places are possible; check with your local
@@ -97,8 +97,8 @@ before printing the first prompt:
9797

9898
.. code-block:: shell-session
9999
100-
$ python3.14
101-
Python 3.14 (default, April 4 2024, 09:25:04)
100+
$ python3.15
101+
Python 3.15 (default, May 7 2025, 15:46:04)
102102
[GCC 10.2.0] on linux
103103
Type "help", "copyright", "credits" or "license" for more information.
104104
>>>

Doc/tutorial/stdlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ operating system::
1515

1616
>>> import os
1717
>>> os.getcwd() # Return the current working directory
18-
'C:\\Python314'
18+
'C:\\Python315'
1919
>>> os.chdir('/server/accesslogs') # Change current working directory
2020
>>> os.system('mkdir today') # Run the command mkdir in the system shell
2121
0

Doc/tutorial/stdlib2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ applications include caching objects that are expensive to create::
279279
Traceback (most recent call last):
280280
File "<stdin>", line 1, in <module>
281281
d['primary'] # entry was automatically removed
282-
File "C:/python314/lib/weakref.py", line 46, in __getitem__
282+
File "C:/python315/lib/weakref.py", line 46, in __getitem__
283283
o = self.data[key]()
284284
KeyError: 'primary'
285285

Doc/whatsnew/3.15.rst

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
2+
****************************
3+
What's new in Python 3.15
4+
****************************
5+
6+
:Editor: TBD
7+
8+
.. Rules for maintenance:
9+
10+
* Anyone can add text to this document. Do not spend very much time
11+
on the wording of your changes, because your text will probably
12+
get rewritten to some degree.
13+
14+
* The maintainer will go through Misc/NEWS periodically and add
15+
changes; it's therefore more important to add your changes to
16+
Misc/NEWS than to this file.
17+
18+
* This is not a complete list of every single change; completeness
19+
is the purpose of Misc/NEWS. Some changes I consider too small
20+
or esoteric to include. If such a change is added to the text,
21+
I'll just remove it. (This is another reason you shouldn't spend
22+
too much time on writing your addition.)
23+
24+
* If you want to draw your new text to the attention of the
25+
maintainer, add 'XXX' to the beginning of the paragraph or
26+
section.
27+
28+
* It's OK to just add a fragmentary note about a change. For
29+
example: "XXX Describe the transmogrify() function added to the
30+
socket module." The maintainer will research the change and
31+
write the necessary text.
32+
33+
* You can comment out your additions if you like, but it's not
34+
necessary (especially when a final release is some months away).
35+
36+
* Credit the author of a patch or bugfix. Just the name is
37+
sufficient; the e-mail address isn't necessary.
38+
39+
* It's helpful to add the issue number as a comment:
40+
41+
XXX Describe the transmogrify() function added to the socket
42+
module.
43+
(Contributed by P.Y. Developer in :gh:`12345`.)
44+
45+
This saves the maintainer the effort of going through the VCS log
46+
when researching a change.
47+
48+
This article explains the new features in Python 3.15, compared to 3.14.
49+
50+
For full details, see the :ref:`changelog <changelog>`.
51+
52+
.. note::
53+
54+
Prerelease users should be aware that this document is currently in draft
55+
form. It will be updated substantially as Python 3.15 moves towards release,
56+
so it's worth checking back even after reading earlier versions.
57+
58+
59+
Summary --- release highlights
60+
==============================
61+
62+
.. This section singles out the most important changes in Python 3.15.
63+
Brevity is key.
64+
65+
66+
.. PEP-sized items next.
67+
68+
69+
70+
New features
71+
============
72+
73+
74+
75+
Other language changes
76+
======================
77+
78+
79+
80+
New modules
81+
===========
82+
83+
* None yet.
84+
85+
86+
Improved modules
87+
================
88+
89+
module_name
90+
-----------
91+
92+
* TODO
93+
94+
.. Add improved modules above alphabetically, not here at the end.
95+
96+
Optimizations
97+
=============
98+
99+
module_name
100+
-----------
101+
102+
* TODO
103+
104+
105+
106+
Deprecated
107+
==========
108+
109+
* module_name:
110+
TODO
111+
112+
113+
.. Add deprecations above alphabetically, not here at the end.
114+
115+
Removed
116+
=======
117+
118+
module_name
119+
-----------
120+
121+
* TODO
122+
123+
124+
Porting to Python 3.15
125+
======================
126+
127+
This section lists previously described changes and other bugfixes
128+
that may require changes to your code.
129+
130+
131+
Build changes
132+
=============
133+
134+
135+
C API changes
136+
=============
137+
138+
New features
139+
------------
140+
141+
* TODO
142+
Porting to Python 3.15
143+
----------------------
144+
145+
* TODO
146+
147+
Deprecated C APIs
148+
-----------------
149+
150+
* TODO
151+
152+
.. Add C API deprecations above alphabetically, not here at the end.
153+
154+
Removed C APIs
155+
--------------
156+

Include/patchlevel.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
/* Version parsed out into numeric values */
1919
/*--start constants--*/
2020
#define PY_MAJOR_VERSION 3
21-
#define PY_MINOR_VERSION 14
21+
#define PY_MINOR_VERSION 15
2222
#define PY_MICRO_VERSION 0
23-
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
24-
#define PY_RELEASE_SERIAL 1
23+
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
24+
#define PY_RELEASE_SERIAL 0
2525

2626
/* Version as a string */
27-
#define PY_VERSION "3.14.0b1"
27+
#define PY_VERSION "3.15.0a0"
2828
/*--end constants--*/
2929

3030

PC/pyconfig.h.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,19 +320,19 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
320320
the linking is explicitly handled */
321321
# if defined(Py_GIL_DISABLED)
322322
# if defined(_DEBUG)
323-
# pragma comment(lib,"python314t_d.lib")
323+
# pragma comment(lib,"python315t_d.lib")
324324
# elif defined(Py_LIMITED_API)
325325
# pragma comment(lib,"python3t.lib")
326326
# else
327-
# pragma comment(lib,"python314t.lib")
327+
# pragma comment(lib,"python315t.lib")
328328
# endif /* _DEBUG */
329329
# else /* Py_GIL_DISABLED */
330330
# if defined(_DEBUG)
331-
# pragma comment(lib,"python314_d.lib")
331+
# pragma comment(lib,"python315_d.lib")
332332
# elif defined(Py_LIMITED_API)
333333
# pragma comment(lib,"python3.lib")
334334
# else
335-
# pragma comment(lib,"python314.lib")
335+
# pragma comment(lib,"python315.lib")
336336
# endif /* _DEBUG */
337337
# endif /* Py_GIL_DISABLED */
338338
# endif /* _MSC_VER && !Py_NO_LINK_LIB */

PCbuild/rt.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if "%~1"=="-O" (set dashO=-O) & shift & goto CheckOpts
4242
if "%~1"=="-q" (set qmode=yes) & shift & goto CheckOpts
4343
if "%~1"=="-d" (set suffix=_d) & shift & goto CheckOpts
4444
rem HACK: Need some way to infer the version number in this script
45-
if "%~1"=="--disable-gil" (set pyname=python3.14t) & shift & goto CheckOpts
45+
if "%~1"=="--disable-gil" (set pyname=python3.15t) & shift & goto CheckOpts
4646
if "%~1"=="-win32" (set prefix=%pcbuild%win32) & shift & goto CheckOpts
4747
if "%~1"=="-x64" (set prefix=%pcbuild%amd64) & shift & goto CheckOpts
4848
if "%~1"=="-amd64" (set prefix=%pcbuild%amd64) & shift & goto CheckOpts

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
This is Python version 3.14.0 beta 1
2-
====================================
1+
This is Python version 3.15.0 alpha 0
2+
=====================================
33

44
.. image:: https://github.com/python/cpython/actions/workflows/build.yml/badge.svg?branch=main&event=push
55
:alt: CPython build status on GitHub Actions

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dnl to regenerate the configure script.
1010
dnl
1111

1212
# Set VERSION so we only need to edit in one place (i.e., here)
13-
m4_define([PYTHON_VERSION], [3.14])
13+
m4_define([PYTHON_VERSION], [3.15])
1414

1515
AC_PREREQ([2.72])
1616

0 commit comments

Comments
 (0)