blob: 41e8a8d96030ecac80706939dc7d5baf6ef3cdf2 [file] [log] [blame]
Barry Warsaw659fc422008-03-01 17:45:23 +00001This is Python version 3.0 alpha 3
Guido van Rossum1c896e32007-08-29 23:03:30 +00002==================================
Guido van Rossum91447632000-04-11 17:11:09 +00003
Guido van Rossum4405cf32007-08-30 17:16:55 +00004For notes specific to this release, see RELNOTES in this directory.
Christian Heimesb558a2e2008-03-02 22:46:37 +00005Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6Python Software Foundation.
7All rights reserved.
Guido van Rossum4405cf32007-08-30 17:16:55 +00008
Guido van Rossum1c896e32007-08-29 23:03:30 +00009Python 3000 (a.k.a. "Py3k", and released as Python 3.0) is a new
10version of the language, which is incompatible with the 2.x line of
11releases. The language is mostly the same, but many details,
12especially how built-in objects like dictionaries and strings work,
13have changed considerably, and a lot of deprecated features have
14finally been removed.
15
16This is an ongoing project; the cleanup isn't expected to be complete
Guido van Rossum99533a92007-12-06 05:07:41 +000017until some time in 2008. In particular there are plans to reorganize
18the standard library namespace.
Guido van Rossum1c896e32007-08-29 23:03:30 +000019
Guido van Rossum50e9fb92006-08-17 05:42:55 +000020
Guido van Rossum1c896e32007-08-29 23:03:30 +000021Release Schedule
22----------------
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000023
Guido van Rossum1c896e32007-08-29 23:03:30 +000024The release plan is to have a series of alpha releases in 2007, beta
25releases in 2008, and a final release in August 2008. The alpha
26releases are primarily aimed at developers who want a sneak peek at
27the new langauge, especially those folks who plan to port their code
28to Python 3000. The hope is that by the time of the final release,
29many 3rd party packages will already be available in a 3.0-compatible
30form.
Guido van Rossum8d90f9d1997-05-22 20:13:25 +000031
Guido van Rossumf501b4e1996-10-25 14:32:48 +000032
Guido van Rossumc07d5fa2000-09-01 22:50:02 +000033Documentation
34-------------
Guido van Rossum91cb9d21995-04-10 11:47:38 +000035
Guido van Rossum1c896e32007-08-29 23:03:30 +000036Documentation for Python 3000 is online, updated twice a day:
Guido van Rossum91cb9d21995-04-10 11:47:38 +000037
Guido van Rossum1c896e32007-08-29 23:03:30 +000038 http://docs.python.org/dev/3.0/
Guido van Rossumc07d5fa2000-09-01 22:50:02 +000039
Benjamin Peterson2a691a82008-03-31 01:51:45 +000040All documentation is also available online at the Python web site
41(http://docs.python.org/, see below). It is available online for occasional
42reference, or can be downloaded in many formats for faster access. The
43documentation is downloadable in HTML, PostScript, PDF, LaTeX (through 2.5), and
44reStructuredText (2.6+) formats; the LaTeX and reStructuredText versions are
45primarily for documentation authors, translators, and people with special
46formatting requirements.
47
Guido van Rossum1c896e32007-08-29 23:03:30 +000048This is a work in progress; please help improve it!
Barry Warsaw06557452001-12-14 20:47:12 +000049
Guido van Rossum1c896e32007-08-29 23:03:30 +000050The design documents for Python 3000 are also online. While the
51reference documentation is being updated, the PEPs are often the best
52source of information about new features. Start by reading PEP 3000:
Barry Warsaw06557452001-12-14 20:47:12 +000053
Guido van Rossum1c896e32007-08-29 23:03:30 +000054 http://python.org/dev/peps/pep-3000/
Guido van Rossumc07d5fa2000-09-01 22:50:02 +000055
Guido van Rossumc07d5fa2000-09-01 22:50:02 +000056
Guido van Rossum1c896e32007-08-29 23:03:30 +000057What's New
Guido van Rossum91cb9d21995-04-10 11:47:38 +000058----------
59
Guido van Rossum1c896e32007-08-29 23:03:30 +000060For an overview of what's new in Python 3000, see Guido van Rossum's
61blog at artima.com:
Guido van Rossum64773801997-11-26 17:07:02 +000062
Guido van Rossum1c896e32007-08-29 23:03:30 +000063 http://www.artima.com/weblogs/index.jsp?blogger=guido
Guido van Rossum64773801997-11-26 17:07:02 +000064
Georg Brandlf3f67f22008-02-22 14:22:51 +000065We try to eventually have a comprehensive overview of the changes in
66the "What's New in Python 3.0" document, found at
67
68 http://docs.python.org/dev/3.0/whatsnew/3.0
69
70Please help write it!
Jack Jansena39ef862001-08-19 21:17:03 +000071
Christian Heimesdd15f6c2008-03-16 00:07:10 +000072If you want to install multiple versions of Python see the section below
73entitled "Installing multiple versions".
74
Guido van Rossum91cb9d21995-04-10 11:47:38 +000075
Guido van Rossum99533a92007-12-06 05:07:41 +000076What's New Since 3.0a1
77----------------------
78
79Undoubtedly the biggest change is in the bytes type: 'bytes' is now
80immutable, and there is a new mutable bytes type 'bytearray'. These
81two types are interoperable in every way. For more info on this
82issue, read PEP 3137.
83
84For a more detailed change log, read Misc/NEWS (though this file, too,
85is incomplete, and also doesn't list anything merged in from the 2.6
86release under development).
87
Benjamin Peterson2a691a82008-03-31 01:51:45 +000088Proposals for enhancement
89------------------------------
90
91If you have a proposal to change Python, it's best to submit a Python
92Enhancement Proposal (PEP) first. All current PEPs, as well as guidelines for
93submitting a new PEP, are listed at http://www.python.org/dev/peps/.
Guido van Rossum99533a92007-12-06 05:07:41 +000094
Guido van Rossum1c896e32007-08-29 23:03:30 +000095Converting From Python 2.x to 3.0
96---------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +000097
Guido van Rossum1c896e32007-08-29 23:03:30 +000098Python 2.6 (not yet released) will contain features to help locating
99code that needs to be changed, such as optional warnings when
100deprecated features are used, and backported versions of certain key
101Python 3000 features.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000102
Christian Heimesdd15f6c2008-03-16 00:07:10 +0000103
104Installing multiple versions
105----------------------------
106
107On Unix and Mac systems if you intend to install multiple versions of Python
108using the same installation prefix (--prefix argument to the configure
109script) you must take care that your primary python executable is not
110overwritten by the installation of a different versio. All files and
111directories installed using "make altinstall" contain the major and minor
112version and can thus live side-by-side. "make install" also creates
113${prefix}/bin/python which refers to ${prefix}/bin/pythonX.Y. If you intend
114to install multiple versions using the same prefix you must decide which
115version (if any) is your "primary" version. Install that version using
116"make install". Install all other versions using "make altinstall".
117
118For example, if you want to install Python 2.5, 2.6 and 3.0 with 2.6 being
119the primary version, you would execute "make install" in your 2.6 build
120directory and "make altinstall" in the others.
121
122
123Configuration options and variables
124-----------------------------------
125
Guido van Rossum1c896e32007-08-29 23:03:30 +0000126A source-to-source translation tool, "2to3", can take care of the
127mundane task of converting large amounts of source code. It is not a
128complete solution but is complemented by the deprecation warnings in
1292.6. This tool is currently available via the Subversion sandbox:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000130
Guido van Rossum1c896e32007-08-29 23:03:30 +0000131 http://svn.python.org/view/sandbox/trunk/2to3/
Martin v. Löwis2df66942000-12-13 14:14:32 +0000132
133
Guido van Rossum1c896e32007-08-29 23:03:30 +0000134Issue Tracker and Mailing List
135------------------------------
Michael W. Hudson71dcc3e2005-02-22 15:33:26 +0000136
Guido van Rossum1c896e32007-08-29 23:03:30 +0000137We're soliciting bug reports about all aspects of the language. Fixes
138are also welcome, preferable in unified diff format. Please use the
139issue tracker:
Fred Drake6caae142000-10-25 17:51:02 +0000140
Guido van Rossum1c896e32007-08-29 23:03:30 +0000141 http://bugs.python.org/
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000142
Guido van Rossum1c896e32007-08-29 23:03:30 +0000143If you're not sure whether you're dealing with a bug or a feature, use
144the mailing list:
145
146 python-3000@python.org
147
148To subscribe to the list, use the mailman form:
149
150 http://mail.python.org/mailman/listinfo/python-3000/
Georg Brandl81299ad2006-02-20 10:24:06 +0000151
Michael W. Hudson71dcc3e2005-02-22 15:33:26 +0000152
Guido van Rossum1c896e32007-08-29 23:03:30 +0000153Build Instructions
Guido van Rossumc07d5fa2000-09-01 22:50:02 +0000154------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000155
Neal Norwitzbf2604c2007-08-30 17:22:44 +0000156On Unix, Linux, BSD, OSX, and Cygwin:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000157
Guido van Rossum1c896e32007-08-29 23:03:30 +0000158 ./configure
159 make
160 make test
161 sudo make install # or "make altinstall"
162
163You can pass many options to the configure script; run "./configure
164--help" to find out more. On OSX and Cygwin, the executable is called
165python.exe; elsewhere it's just python.
166
167On Mac OS X, if you have configured Python with --enable-framework,
168you should use "make frameworkinstall" to do the installation. Note
169that this installs the Python executable in a place that is not
170normally on your PATH, you may want to set up a symlink in
171/usr/local/bin.
172
Martin v. Löwis0c3842f2007-08-30 05:34:10 +0000173On Windows, see PCbuild/readme.txt.
174
Guido van Rossum1c896e32007-08-29 23:03:30 +0000175If you wish, you can create a subdirectory and invoke configure from
176there. For example:
177
178 mkdir debug
179 cd debug
180 ../configure --with-pydebug
181 make
182 make test
183
184(This will fail if you *also* built at the top-level directory. You
185should do a "make clean" at the toplevel first.)
Guido van Rossumef0f1292007-08-30 14:51:05 +0000186
187
188Copyright and License Information
189---------------------------------
190
Barry Warsaw659fc422008-03-01 17:45:23 +0000191Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Guido van Rossumef0f1292007-08-30 14:51:05 +0000192Python Software Foundation.
193All rights reserved.
194
195Copyright (c) 2000 BeOpen.com.
196All rights reserved.
197
198Copyright (c) 1995-2001 Corporation for National Research Initiatives.
199All rights reserved.
200
201Copyright (c) 1991-1995 Stichting Mathematisch Centrum.
202All rights reserved.
203
204See the file "LICENSE" for information on the history of this
205software, terms & conditions for usage, and a DISCLAIMER OF ALL
206WARRANTIES.
207
208This Python distribution contains *no* GNU General Public License
209(GPL) code, so it may be used in proprietary projects. There are
210interfaces to some GNU code but these are entirely optional.
211
212All trademarks referenced herein are property of their respective
213holders.