Skip to content

Commit 500b0f4

Browse files
committed
Python 3.13.0a0
1 parent 5612078 commit 500b0f4

File tree

5 files changed

+149
-17
lines changed

5 files changed

+149
-17
lines changed

Doc/tutorial/interpreter.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ Using the Python Interpreter
1010
Invoking the Interpreter
1111
========================
1212

13-
The Python interpreter is usually installed as :file:`/usr/local/bin/python3.12`
13+
The Python interpreter is usually installed as :file:`/usr/local/bin/python3.13`
1414
on those machines where it is available; putting :file:`/usr/local/bin` in your
1515
Unix shell's search path makes it possible to start it by typing the command:
1616

1717
.. code-block:: text
1818
19-
python3.12
19+
python3.13
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
2323
Python guru or system administrator. (E.g., :file:`/usr/local/python` is a
2424
popular alternative location.)
2525

2626
On Windows machines where you have installed Python from the :ref:`Microsoft Store
27-
<windows-store>`, the :file:`python3.12` command will be available. If you have
27+
<windows-store>`, the :file:`python3.13` command will be available. If you have
2828
the :ref:`py.exe launcher <launcher>` installed, you can use the :file:`py`
2929
command. See :ref:`setting-envvars` for other ways to launch Python.
3030

@@ -97,8 +97,8 @@ before printing the first prompt:
9797

9898
.. code-block:: shell-session
9999
100-
$ python3.12
101-
Python 3.12 (default, April 4 2022, 09:25:04)
100+
$ python3.13
101+
Python 3.13 (default, April 4 2023, 09:25:04)
102102
[GCC 10.2.0] on linux
103103
Type "help", "copyright", "credits" or "license" for more information.
104104
>>>

Doc/whatsnew/3.13

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

Include/patchlevel.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
/* Version parsed out into numeric values */
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
20-
#define PY_MINOR_VERSION 12
20+
#define PY_MINOR_VERSION 13
2121
#define PY_MICRO_VERSION 0
22-
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
23-
#define PY_RELEASE_SERIAL 1
22+
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
23+
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.12.0b1"
26+
#define PY_VERSION "3.13.0a0"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is Python version 3.12.0 beta 1
1+
This is Python version 3.13.0 alpha 0
22
=====================================
33

44
.. image:: https://github.com/python/cpython/workflows/Tests/badge.svg
@@ -133,7 +133,7 @@ What's New
133133
----------
134134

135135
We have a comprehensive overview of the changes in the `What's New in Python
136-
3.12 <https://docs.python.org/3.12/whatsnew/3.12.html>`_ document. For a more
136+
3.13 <https://docs.python.org/3.13/whatsnew/3.13.html>`_ document. For a more
137137
detailed change log, read `Misc/NEWS
138138
<https://github.com/python/cpython/tree/main/Misc/NEWS.d>`_, but a full
139139
accounting of changes can only be gleaned from the `commit history
@@ -146,7 +146,7 @@ entitled "Installing multiple versions".
146146
Documentation
147147
-------------
148148

149-
`Documentation for Python 3.12 <https://docs.python.org/3.12/>`_ is online,
149+
`Documentation for Python 3.13 <https://docs.python.org/3.13/>`_ is online,
150150
updated daily.
151151

152152
It can also be downloaded in many formats for faster access. The documentation
@@ -206,8 +206,8 @@ intend to install multiple versions using the same prefix you must decide which
206206
version (if any) is your "primary" version. Install that version using ``make
207207
install``. Install all other versions using ``make altinstall``.
208208

209-
For example, if you want to install Python 2.7, 3.6, and 3.12 with 3.12 being the
210-
primary version, you would execute ``make install`` in your 3.12 build directory
209+
For example, if you want to install Python 2.7, 3.6, and 3.13 with 3.13 being the
210+
primary version, you would execute ``make install`` in your 3.13 build directory
211211
and ``make altinstall`` in the others.
212212

213213

@@ -238,7 +238,7 @@ All current PEPs, as well as guidelines for submitting a new PEP, are listed at
238238
Release Schedule
239239
----------------
240240

241-
See :pep:`693` for Python 3.12 release details.
241+
See :pep:`XXX` for Python 3.13 release details.
242242

243243

244244
Copyright and License Information

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dnl Python's configure.ac file requires autoconf 2.69 and autoconf-archive.
66
dnl
77

88
# Set VERSION so we only need to edit in one place (i.e., here)
9-
m4_define(PYTHON_VERSION, 3.12)
9+
m4_define(PYTHON_VERSION, 3.13)
1010

1111
AC_PREREQ([2.69])
1212

@@ -202,7 +202,7 @@ AC_SUBST([FREEZE_MODULE_DEPS])
202202
AC_SUBST([PYTHON_FOR_BUILD_DEPS])
203203

204204
AC_CHECK_PROGS([PYTHON_FOR_REGEN],
205-
[python$PACKAGE_VERSION python3.12 python3.11 python3.10 python3 python],
205+
[python$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python],
206206
[python3])
207207
AC_SUBST(PYTHON_FOR_REGEN)
208208

0 commit comments

Comments
 (0)