Barry Warsaw | de9ec24 | 2009-02-12 23:35:41 | [diff] [blame] | 1 | This is Python version 3.0.1 |
| 2 | ============================ |
Guido van Rossum | 9144763 | 2000-04-11 17:11:09 | [diff] [blame] | 3 | |
Guido van Rossum | 4405cf3 | 2007-08-30 17:16:55 | [diff] [blame] | 4 | For notes specific to this release, see RELNOTES in this directory. |
Georg Brandl | fa1ce46 | 2009-01-04 00:08:31 | [diff] [blame] | 5 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
Christian Heimes | b558a2e | 2008-03-02 22:46:37 | [diff] [blame] | 6 | Python Software Foundation. |
| 7 | All rights reserved. |
Guido van Rossum | 4405cf3 | 2007-08-30 17:16:55 | [diff] [blame] | 8 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 9 | Python 3 (a.k.a. "Python 3000" or "Py3k", and released as Python 3.0) is a new |
| 10 | version of the language, which is incompatible with the 2.x line of releases. |
| 11 | The language is mostly the same, but many details, especially how built-in |
| 12 | objects like dictionaries and strings work, have changed considerably, and a |
| 13 | lot of deprecated features have finally been removed. |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 | [diff] [blame] | 14 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 | [diff] [blame] | 15 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 | [diff] [blame] | 16 | Documentation |
| 17 | ------------- |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 | [diff] [blame] | 18 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 19 | Documentation for Python 3.0 is online, updated twice a day: |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 | [diff] [blame] | 20 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 21 | http://docs.python.org/dev/3.0/ |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 | [diff] [blame] | 22 | |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 | [diff] [blame] | 23 | All documentation is also available online at the Python web site |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 24 | (http://docs.python.org/, see below). It is available online for occasional |
| 25 | reference, and it can be downloaded in many formats for faster local access. |
| 26 | The documentation is downloadable in HTML, PostScript, PDF, LaTeX (through |
| 27 | 2.5), and reStructuredText (2.6, 3.0, and going forward) formats; the LaTeX |
| 28 | and reStructuredText versions are primarily for documentation authors, |
Barry Warsaw | bb5cd08 | 2008-04-02 23:33:27 | [diff] [blame] | 29 | translators, and people with special formatting requirements. |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 | [diff] [blame] | 30 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 31 | This is a work in progress; please help improve it! |
Barry Warsaw | 0655745 | 2001-12-14 20:47:12 | [diff] [blame] | 32 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 33 | The design documents for Python 3 are also online. While the reference |
| 34 | documentation is being updated, the PEPs are often the best source of |
| 35 | information about new features. Start by reading PEP 3000: |
Barry Warsaw | 0655745 | 2001-12-14 20:47:12 | [diff] [blame] | 36 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 37 | http://python.org/dev/peps/pep-3000/ |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 | [diff] [blame] | 38 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 | [diff] [blame] | 39 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 40 | What's New |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 | [diff] [blame] | 41 | ---------- |
| 42 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 43 | For an overview of what's new in Python 3.0, see Guido van Rossum's blog at |
| 44 | artima.com: |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 | [diff] [blame] | 45 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 46 | http://www.artima.com/weblogs/index.jsp?blogger=guido |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 | [diff] [blame] | 47 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 48 | We try to eventually have a comprehensive overview of the changes in the |
| 49 | "What's New in Python 3.0" document, found at |
Georg Brandl | f3f67f2 | 2008-02-22 14:22:51 | [diff] [blame] | 50 | |
| 51 | http://docs.python.org/dev/3.0/whatsnew/3.0 |
| 52 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 53 | Please help improve it! |
Jack Jansen | a39ef86 | 2001-08-19 21:17:03 | [diff] [blame] | 54 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 55 | For a more detailed change log, read Misc/NEWS, though this file, too, is |
| 56 | incomplete, and also doesn't list anything merged in from the 2.6 release. |
Guido van Rossum | 99533a9 | 2007-12-06 05:07:41 | [diff] [blame] | 57 | |
Barry Warsaw | 160b9a3 | 2008-05-08 11:54:13 | [diff] [blame] | 58 | If you want to install multiple versions of Python see the section below |
| 59 | entitled "Installing multiple versions". |
| 60 | |
| 61 | |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 | [diff] [blame] | 62 | Proposals for enhancement |
Barry Warsaw | bb5cd08 | 2008-04-02 23:33:27 | [diff] [blame] | 63 | ------------------------- |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 | [diff] [blame] | 64 | |
Benjamin Peterson | ad9d48d | 2008-04-02 21:49:44 | [diff] [blame] | 65 | If you have a proposal to change Python, you may want to send an email to the |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 66 | comp.lang.python or python-ideas mailing lists for initial feedback. A Python |
| 67 | Enhancement Proposal (PEP) may be submitted if your idea gains ground. All |
Benjamin Peterson | ad9d48d | 2008-04-02 21:49:44 | [diff] [blame] | 68 | current PEPs, as well as guidelines for submitting a new PEP, are listed at |
| 69 | http://www.python.org/dev/peps/. |
Guido van Rossum | 99533a9 | 2007-12-06 05:07:41 | [diff] [blame] | 70 | |
Barry Warsaw | 160b9a3 | 2008-05-08 11:54:13 | [diff] [blame] | 71 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 72 | Converting From Python 2.x to 3.0 |
| 73 | --------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 | [diff] [blame] | 74 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 75 | Python 2.6 contains features to help locating and updating code that needs to |
| 76 | be changed when migrating to Python 3. |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 | [diff] [blame] | 77 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 78 | A source-to-source translation tool, "2to3", can take care of the |
| 79 | mundane task of converting large amounts of source code. It is not a |
| 80 | complete solution but is complemented by the deprecation warnings in |
| 81 | 2.6. This tool is currently available via the Subversion sandbox: |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 | [diff] [blame] | 82 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 83 | http://svn.python.org/view/sandbox/trunk/2to3/ |
Martin v. Löwis | 2df6694 | 2000-12-13 14:14:32 | [diff] [blame] | 84 | |
| 85 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 86 | Installing multiple versions |
| 87 | ---------------------------- |
| 88 | |
| 89 | On Unix and Mac systems if you intend to install multiple versions of Python |
| 90 | using the same installation prefix (--prefix argument to the configure script) |
| 91 | you must take care that your primary python executable is not overwritten by |
| 92 | the installation of a different version. All files and directories installed |
| 93 | using "make altinstall" contain the major and minor version and can thus live |
| 94 | side-by-side. "make install" also creates ${prefix}/bin/python which refers |
| 95 | to ${prefix}/bin/pythonX.Y. If you intend to install multiple versions using |
| 96 | the same prefix you must decide which version (if any) is your "primary" |
| 97 | version. Install that version using "make install". Install all other |
| 98 | versions using "make altinstall". |
| 99 | |
| 100 | For example, if you want to install Python 2.5, 2.6 and 3.0 with 2.6 being the |
| 101 | primary version, you would execute "make install" in your 2.6 build directory |
| 102 | and "make altinstall" in the others. |
| 103 | |
| 104 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 105 | Issue Tracker and Mailing List |
| 106 | ------------------------------ |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 | [diff] [blame] | 107 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 108 | We're soliciting bug reports about all aspects of the language. Fixes are |
| 109 | also welcome, preferable in unified diff format. Please use the issue |
| 110 | tracker: |
Fred Drake | 6caae14 | 2000-10-25 17:51:02 | [diff] [blame] | 111 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 112 | http://bugs.python.org/ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 113 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 114 | If you're not sure whether you're dealing with a bug or a feature, use the |
| 115 | mailing list: |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 116 | |
Mark Dickinson | 1c63156 | 2009-02-06 16:41:19 | [diff] [blame] | 117 | python-dev@python.org |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 118 | |
Barry Warsaw | 38a29bb | 2008-12-03 17:15:13 | [diff] [blame] | 119 | To subscribe to the list, use the Mailman form: |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 120 | |
Mark Dickinson | 1c63156 | 2009-02-06 16:41:19 | [diff] [blame] | 121 | http://mail.python.org/mailman/listinfo/python-dev/ |
Georg Brandl | 81299ad | 2006-02-20 10:24:06 | [diff] [blame] | 122 | |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 | [diff] [blame] | 123 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 124 | Build Instructions |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 | [diff] [blame] | 125 | ------------------ |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 | [diff] [blame] | 126 | |
Neal Norwitz | bf2604c | 2007-08-30 17:22:44 | [diff] [blame] | 127 | On Unix, Linux, BSD, OSX, and Cygwin: |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 | [diff] [blame] | 128 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 129 | ./configure |
| 130 | make |
| 131 | make test |
| 132 | sudo make install # or "make altinstall" |
| 133 | |
| 134 | You can pass many options to the configure script; run "./configure |
| 135 | --help" to find out more. On OSX and Cygwin, the executable is called |
| 136 | python.exe; elsewhere it's just python. |
| 137 | |
| 138 | On Mac OS X, if you have configured Python with --enable-framework, |
| 139 | you should use "make frameworkinstall" to do the installation. Note |
| 140 | that this installs the Python executable in a place that is not |
| 141 | normally on your PATH, you may want to set up a symlink in |
| 142 | /usr/local/bin. |
| 143 | |
Martin v. Löwis | 0c3842f | 2007-08-30 05:34:10 | [diff] [blame] | 144 | On Windows, see PCbuild/readme.txt. |
| 145 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 | [diff] [blame] | 146 | If you wish, you can create a subdirectory and invoke configure from |
| 147 | there. For example: |
| 148 | |
| 149 | mkdir debug |
| 150 | cd debug |
| 151 | ../configure --with-pydebug |
| 152 | make |
| 153 | make test |
| 154 | |
| 155 | (This will fail if you *also* built at the top-level directory. You |
| 156 | should do a "make clean" at the toplevel first.) |
Guido van Rossum | ef0f129 | 2007-08-30 14:51:05 | [diff] [blame] | 157 | |
| 158 | |
| 159 | Copyright and License Information |
| 160 | --------------------------------- |
| 161 | |
Barry Warsaw | de9ec24 | 2009-02-12 23:35:41 | [diff] [blame] | 162 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
Guido van Rossum | ef0f129 | 2007-08-30 14:51:05 | [diff] [blame] | 163 | Python Software Foundation. |
| 164 | All rights reserved. |
| 165 | |
| 166 | Copyright (c) 2000 BeOpen.com. |
| 167 | All rights reserved. |
| 168 | |
| 169 | Copyright (c) 1995-2001 Corporation for National Research Initiatives. |
| 170 | All rights reserved. |
| 171 | |
| 172 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum. |
| 173 | All rights reserved. |
| 174 | |
| 175 | See the file "LICENSE" for information on the history of this |
| 176 | software, terms & conditions for usage, and a DISCLAIMER OF ALL |
| 177 | WARRANTIES. |
| 178 | |
| 179 | This Python distribution contains *no* GNU General Public License |
| 180 | (GPL) code, so it may be used in proprietary projects. There are |
| 181 | interfaces to some GNU code but these are entirely optional. |
| 182 | |
| 183 | All trademarks referenced herein are property of their respective |
| 184 | holders. |