Python 3.12.0a0 · python/cpython@e851177 · GitHub
Skip to content

Commit e851177

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

7 files changed

Lines changed: 135 additions & 19 deletions

File tree

Doc/tutorial/interpreter.rst

Lines changed: 5 additions & 5 deletions

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

0 commit comments

Comments
 (0)