Skip to content

Commit 97f005d

Browse files
committed
Prep for Python 3.1!
1 parent 815427c commit 97f005d

File tree

12 files changed

+1444
-1432
lines changed

12 files changed

+1444
-1432
lines changed

Doc/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ been GPL-compatible; the table below summarizes the various releases.
9090
+----------------+--------------+------------+------------+-----------------+
9191
| 2.6 | 2.5 | 2008 | PSF | yes |
9292
+----------------+--------------+------------+------------+-----------------+
93-
| 3.0 | 2.6 | 2007 | PSF | yes |
93+
| 3.0 | 2.6 | 2008 | PSF | yes |
9494
+----------------+--------------+------------+------------+-----------------+
9595

9696
.. note::

Doc/tutorial/interpreter.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ Using the Python Interpreter
1010
Invoking the Interpreter
1111
========================
1212

13-
The Python interpreter is usually installed as :file:`/usr/local/bin/python3.0`
13+
The Python interpreter is usually installed as :file:`/usr/local/bin/python3.1`
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

17-
python3.0
17+
python3.1
1818

1919
to the shell. [#]_ Since the choice of the directory where the interpreter lives
2020
is an installation option, other places are possible; check with your local
2121
Python guru or system administrator. (E.g., :file:`/usr/local/python` is a
2222
popular alternative location.)
2323

2424
On Windows machines, the Python installation is usually placed in
25-
:file:`C:\\Python30`, though you can change this when you're running the
25+
:file:`C:\\Python31`, though you can change this when you're running the
2626
installer. To add this directory to your path, you can type the following
2727
command into the command prompt in a DOS box::
2828

29-
set path=%path%;C:\python30
29+
set path=%path%;C:\python31
3030

3131
Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` on
3232
Windows) at the primary prompt causes the interpreter to exit with a zero exit
@@ -101,13 +101,13 @@ with the *secondary prompt*, by default three dots (``...``). The interpreter
101101
prints a welcome message stating its version number and a copyright notice
102102
before printing the first prompt::
103103

104-
$ python3.0
105-
Python 3.0a1 (py3k, Sep 12 2007, 12:21:02)
104+
$ python3.1
105+
Python 3.1a1 (py3k, Sep 12 2007, 12:21:02)
106106
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
107107
Type "help", "copyright", "credits" or "license" for more information.
108108
>>>
109109

110-
.. XXX update for final release of Python 3.0
110+
.. XXX update for final release of Python 3.1
111111
112112
Continuation lines are needed when entering a multi-line construct. As an
113113
example, take a look at this :keyword:`if` statement::
@@ -155,7 +155,7 @@ Executable Python Scripts
155155
On BSD'ish Unix systems, Python scripts can be made directly executable, like
156156
shell scripts, by putting the line ::
157157

158-
#! /usr/bin/env python3.0
158+
#! /usr/bin/env python3.1
159159

160160
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
161161
of the script and giving the file an executable mode. The ``#!`` must be the
@@ -243,7 +243,7 @@ in the script::
243243

244244
.. rubric:: Footnotes
245245

246-
.. [#] On Unix, the 3.0 interpreter is by default not installed with the
246+
.. [#] On Unix, the 3.1 interpreter is by default not installed with the
247247
executable named ``python``, so that it does not conflict with a
248248
simultaneously installed Python 2.x executable.
249249

Doc/tutorial/stdlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ operating system::
1717
>>> os.system('time 0:02')
1818
0
1919
>>> os.getcwd() # Return the current working directory
20-
'C:\\Python30'
20+
'C:\\Python31'
2121
>>> os.chdir('/server/accesslogs')
2222

2323
Be sure to use the ``import os`` style instead of ``from os import *``. This

Doc/tutorial/stdlib2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ applications include caching objects that are expensive to create::
271271
Traceback (most recent call last):
272272
File "<stdin>", line 1, in <module>
273273
d['primary'] # entry was automatically removed
274-
File "C:/python30/lib/weakref.py", line 46, in __getitem__
274+
File "C:/python31/lib/weakref.py", line 46, in __getitem__
275275
o = self.data[key]()
276276
KeyError: 'primary'
277277

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 0
20+
#define PY_MINOR_VERSION 1
2121
#define PY_MICRO_VERSION 0
22-
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA
23-
#define PY_RELEASE_SERIAL 3
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.0rc3+"
26+
#define PY_VERSION "3.1a0"
2727
/*--end constants--*/
2828

2929
/* Subversion Revision number of this file (not of the repository) */

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ the various releases.
5656
2.5 2.4 2006 PSF yes
5757
2.5.1 2.5 2007 PSF yes
5858
2.6 2.5 2008 PSF yes
59-
3.0 2.6 2007 PSF yes
59+
3.0 2.6 2008 PSF yes
6060

6161
Footnotes:
6262

Lib/distutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
#
2121

2222
#--start constants--
23-
__version__ = "3.0rc3"
23+
__version__ = "3.1a0"
2424
#--end constants--

Lib/idlelib/idlever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IDLE_VERSION = "3.0rc3"
1+
IDLE_VERSION = "3.1a0"

0 commit comments

Comments
 (0)