Skip to content

Commit e851177

Browse files
committed
Python 3.12.0a0
1 parent 8d32a5c commit e851177

File tree

7 files changed

+135
-19
lines changed

7 files changed

+135
-19
lines changed

Doc/tutorial/interpreter.rst

Lines changed: 5 additions & 5 deletions
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.11`
13+
The Python interpreter is usually installed as :file:`/usr/local/bin/python3.12`
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.11
19+
python3.12
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.11` command will be available. If you have
27+
<windows-store>`, the :file:`python3.12` 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.11
101-
Python 3.11 (default, April 4 2021, 09:25:04)
100+
$ python3.12
101+
Python 3.12 (default, April 4 2022, 09:25: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:\\Python311'
18+
'C:\\Python312'
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
@@ -278,7 +278,7 @@ applications include caching objects that are expensive to create::
278278
Traceback (most recent call last):
279279
File "<stdin>", line 1, in <module>
280280
d['primary'] # entry was automatically removed
281-
File "C:/python311/lib/weakref.py", line 46, in __getitem__
281+
File "C:/python312/lib/weakref.py", line 46, in __getitem__
282282
o = self.data[key]()
283283
KeyError: 'primary'
284284

Doc/whatsnew/3.12

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
2+
****************************
3+
What's New In Python 3.12
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 bug/patch number as a comment:
41+
42+
XXX Describe the transmogrify() function added to the socket
43+
module.
44+
(Contributed by P.Y. Developer in :issue:`12345`.)
45+
46+
This saves the maintainer the effort of going through the Mercurial log
47+
when researching a change.
48+
49+
This article explains the new features in Python 3.12, compared to 3.10.
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.12 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.12.
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+
Build and C API Changes
98+
=======================
99+
100+
* :c:func:`PyFrame_BlockSetup` and :c:func:`PyFrame_BlockPop` have been removed.
101+
102+
Deprecated
103+
==========
104+
105+
106+
107+
Removed
108+
=======
109+
110+
111+
112+
Porting to Python 3.12
113+
======================
114+
115+
This section lists previously described changes and other bugfixes
116+
that may require changes to your code.

Include/patchlevel.h

Lines changed: 4 additions & 4 deletions
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 11
20+
#define PY_MINOR_VERSION 12
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.11.0b1"
26+
#define PY_VERSION "3.12.0a0"
2727
/*--end constants--*/
2828

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

README.rst

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

44
.. image:: https://github.com/python/cpython/workflows/Tests/badge.svg
55
:alt: CPython build status on GitHub Actions
@@ -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.11 <https://docs.python.org/3.11/whatsnew/3.11.html>`_ document. For a more
136+
3.12 <https://docs.python.org/3.12/whatsnew/3.12.html>`_ document. For a more
137137
detailed change log, read `Misc/NEWS
138138
<https://github.com/python/cpython/blob/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.11 <https://docs.python.org/3.11/>`_ is online,
149+
`Documentation for Python 3.12 <https://docs.python.org/3.12/>`_ 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.11 with 3.11 being the
210-
primary version, you would execute ``make install`` in your 3.11 build directory
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
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:`664` for Python 3.11 release details.
241+
See :pep:`664` for Python 3.12 release details.
242242

243243

244244
Copyright and License Information

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dnl Python's configure script 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.11)
9+
m4_define(PYTHON_VERSION, 3.12)
1010

1111
AC_PREREQ([2.69])
1212

0 commit comments

Comments
 (0)