Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1 | This is Python version 3.2 |
Benjamin Peterson | 3928516 | 2009-06-26 13:11:28 +0000 | [diff] [blame] | 2 | ========================== |
Guido van Rossum | 9144763 | 2000-04-11 17:11:09 +0000 | [diff] [blame] | 3 | |
Benjamin Peterson | b7b0019 | 2010-01-01 04:49:25 +0000 | [diff] [blame] | 4 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
Christian Heimes | b558a2e | 2008-03-02 22:46:37 +0000 | [diff] [blame] | 5 | Python Software Foundation. |
| 6 | All rights reserved. |
Guido van Rossum | 4405cf3 | 2007-08-30 17:16:55 +0000 | [diff] [blame] | 7 | |
Barry Warsaw | 97f005d | 2008-12-03 16:46:14 +0000 | [diff] [blame] | 8 | Python 3.x is a new version of the language, which is incompatible with the |
| 9 | 2.x line of releases. The language is mostly the same, but many details, |
| 10 | especially how built-in objects like dictionaries and strings work, have |
| 11 | changed considerably, and a lot of deprecated features have finally been |
| 12 | removed. |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 13 | |
Guido van Rossum | 50e9fb9 | 2006-08-17 05:42:55 +0000 | [diff] [blame] | 14 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 15 | Build Instructions |
| 16 | ------------------ |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 17 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 18 | On Unix, Linux, BSD, OSX, and Cygwin: |
| 19 | |
| 20 | ./configure |
| 21 | make |
| 22 | make test |
| 23 | sudo make install |
| 24 | |
| 25 | This will install Python as python3. |
| 26 | |
| 27 | You can pass many options to the configure script; run "./configure |
| 28 | --help" to find out more. On OSX and Cygwin, the executable is called |
| 29 | python.exe; elsewhere it's just python. |
| 30 | |
| 31 | On Mac OS X, if you have configured Python with --enable-framework, |
| 32 | you should use "make frameworkinstall" to do the installation. Note |
| 33 | that this installs the Python executable in a place that is not |
| 34 | normally on your PATH, you may want to set up a symlink in |
| 35 | /usr/local/bin. |
| 36 | |
| 37 | On Windows, see PCbuild/readme.txt. |
| 38 | |
| 39 | If you wish, you can create a subdirectory and invoke configure from |
| 40 | there. For example: |
| 41 | |
| 42 | mkdir debug |
| 43 | cd debug |
| 44 | ../configure --with-pydebug |
| 45 | make |
| 46 | make test |
| 47 | |
| 48 | (This will fail if you *also* built at the top-level directory. You |
| 49 | should do a "make clean" at the toplevel first.) |
| 50 | |
| 51 | |
| 52 | What's New |
| 53 | ---------- |
| 54 | |
| 55 | We try to have a comprehensive overview of the changes in the "What's New in |
| 56 | Python 3.1" document, found at |
| 57 | |
| 58 | http://docs.python.org/dev/3.1/whatsnew/3.1.html |
| 59 | |
| 60 | For a more detailed change log, read Misc/NEWS (though this file, too, |
| 61 | is incomplete, and also doesn't list anything merged in from the 2.7 |
| 62 | release under development). |
| 63 | |
| 64 | If you want to install multiple versions of Python see the section below |
| 65 | entitled "Installing multiple versions". |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 +0000 | [diff] [blame] | 66 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 67 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 68 | Documentation |
| 69 | ------------- |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 70 | |
Barry Warsaw | 97f005d | 2008-12-03 16:46:14 +0000 | [diff] [blame] | 71 | Documentation for Python 3.1 is online, updated twice a day: |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 72 | |
Barry Warsaw | 97f005d | 2008-12-03 16:46:14 +0000 | [diff] [blame] | 73 | http://docs.python.org/dev/3.1/ |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 74 | |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 +0000 | [diff] [blame] | 75 | All documentation is also available online at the Python web site |
Barry Warsaw | bb5cd08 | 2008-04-02 23:33:27 +0000 | [diff] [blame] | 76 | (http://docs.python.org/, see below). It is available online for |
| 77 | occasional reference, or can be downloaded in many formats for faster |
| 78 | access. The documentation is downloadable in HTML, PostScript, PDF, |
| 79 | LaTeX (through 2.5), and reStructuredText (2.6+) formats; the LaTeX and |
| 80 | reStructuredText versions are primarily for documentation authors, |
| 81 | translators, and people with special formatting requirements. |
Benjamin Peterson | 2a691a8 | 2008-03-31 01:51:45 +0000 | [diff] [blame] | 82 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 83 | |
Barry Warsaw | 97f005d | 2008-12-03 16:46:14 +0000 | [diff] [blame] | 84 | Converting From Python 2.x to 3.x |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 85 | --------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 86 | |
Barry Warsaw | 97f005d | 2008-12-03 16:46:14 +0000 | [diff] [blame] | 87 | Python starting with 2.6 will contain features to help locating code that |
| 88 | needs to be changed, such as optional warnings when deprecated features are |
| 89 | used, and backported versions of certain key Python 3.x features. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 90 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 91 | A source-to-source translation tool, "2to3", can take care of the mundane task |
| 92 | of converting large amounts of source code. It is not a complete solution but |
| 93 | is complemented by the deprecation warnings in 2.6. See |
| 94 | http://docs.python.org/dev/py3k/library/2to3.html for more information. |
| 95 | |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 96 | |
Benjamin Peterson | ad3d5c2 | 2009-02-26 03:38:59 +0000 | [diff] [blame] | 97 | Testing |
| 98 | ------- |
| 99 | |
| 100 | To test the interpreter, type "make test" in the top-level directory. |
| 101 | This runs the test set twice (once with no compiled files, once with |
| 102 | the compiled files left by the previous test run). The test set |
| 103 | produces some output. You can generally ignore the messages about |
| 104 | skipped tests due to optional features which can't be imported. |
| 105 | If a message is printed about a failed test or a traceback or core |
| 106 | dump is produced, something is wrong. On some Linux systems (those |
| 107 | that are not yet using glibc 6), test_strftime fails due to a |
| 108 | non-standard implementation of strftime() in the C library. Please |
| 109 | ignore this, or upgrade to glibc version 6. |
| 110 | |
| 111 | By default, tests are prevented from overusing resources like disk space and |
| 112 | memory. To enable these tests, run "make testall". |
| 113 | |
| 114 | IMPORTANT: If the tests fail and you decide to mail a bug report, |
| 115 | *don't* include the output of "make test". It is useless. Run the |
| 116 | failing test manually, as follows: |
| 117 | |
| 118 | ./python Lib/test/regrtest.py -v test_whatever |
| 119 | |
| 120 | (substituting the top of the source tree for '.' if you built in a |
| 121 | different directory). This runs the test in verbose mode. |
| 122 | |
| 123 | |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 124 | Installing multiple versions |
| 125 | ---------------------------- |
| 126 | |
| 127 | On Unix and Mac systems if you intend to install multiple versions of Python |
| 128 | using the same installation prefix (--prefix argument to the configure |
| 129 | script) you must take care that your primary python executable is not |
Ezio Melotti | 9023e68 | 2009-07-04 01:14:30 +0000 | [diff] [blame] | 130 | overwritten by the installation of a different version. All files and |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 131 | directories installed using "make altinstall" contain the major and minor |
| 132 | version and can thus live side-by-side. "make install" also creates |
Benjamin Peterson | 932073a | 2009-05-23 16:14:33 +0000 | [diff] [blame] | 133 | ${prefix}/bin/python3 which refers to ${prefix}/bin/pythonX.Y. If you intend |
Christian Heimes | dd15f6c | 2008-03-16 00:07:10 +0000 | [diff] [blame] | 134 | to install multiple versions using the same prefix you must decide which |
| 135 | version (if any) is your "primary" version. Install that version using |
| 136 | "make install". Install all other versions using "make altinstall". |
| 137 | |
| 138 | For example, if you want to install Python 2.5, 2.6 and 3.0 with 2.6 being |
| 139 | the primary version, you would execute "make install" in your 2.6 build |
| 140 | directory and "make altinstall" in the others. |
| 141 | |
| 142 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 143 | Issue Tracker and Mailing List |
| 144 | ------------------------------ |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 +0000 | [diff] [blame] | 145 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 146 | We're soliciting bug reports about all aspects of the language. Fixes |
| 147 | are also welcome, preferable in unified diff format. Please use the |
| 148 | issue tracker: |
Fred Drake | 6caae14 | 2000-10-25 17:51:02 +0000 | [diff] [blame] | 149 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 150 | http://bugs.python.org/ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 151 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 152 | If you're not sure whether you're dealing with a bug or a feature, use |
| 153 | the mailing list: |
| 154 | |
Mark Dickinson | b9ebd04 | 2009-02-06 16:39:11 +0000 | [diff] [blame] | 155 | python-dev@python.org |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 156 | |
| 157 | To subscribe to the list, use the mailman form: |
| 158 | |
Mark Dickinson | b9ebd04 | 2009-02-06 16:39:11 +0000 | [diff] [blame] | 159 | http://mail.python.org/mailman/listinfo/python-dev/ |
Georg Brandl | 81299ad | 2006-02-20 10:24:06 +0000 | [diff] [blame] | 160 | |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 +0000 | [diff] [blame] | 161 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 162 | Proposals for enhancement |
| 163 | ------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 164 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 165 | If you have a proposal to change Python, you may want to send an email to the |
| 166 | comp.lang.python or python-ideas mailing lists for inital feedback. A Python |
| 167 | Enhancement Proposal (PEP) may be submitted if your idea gains ground. All |
| 168 | current PEPs, as well as guidelines for submitting a new PEP, are listed at |
| 169 | http://www.python.org/dev/peps/. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 170 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 171 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 172 | Release Schedule |
| 173 | ---------------- |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 174 | |
Benjamin Peterson | 1da43e5 | 2009-06-26 13:21:52 +0000 | [diff] [blame] | 175 | See PEP 375 for release details: http://www.python.org/dev/peps/pep-0375/ |
Guido van Rossum | ef0f129 | 2007-08-30 14:51:05 +0000 | [diff] [blame] | 176 | |
| 177 | |
| 178 | Copyright and License Information |
| 179 | --------------------------------- |
| 180 | |
Barry Warsaw | 659fc42 | 2008-03-01 17:45:23 +0000 | [diff] [blame] | 181 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
Guido van Rossum | ef0f129 | 2007-08-30 14:51:05 +0000 | [diff] [blame] | 182 | Python Software Foundation. |
| 183 | All rights reserved. |
| 184 | |
| 185 | Copyright (c) 2000 BeOpen.com. |
| 186 | All rights reserved. |
| 187 | |
| 188 | Copyright (c) 1995-2001 Corporation for National Research Initiatives. |
| 189 | All rights reserved. |
| 190 | |
| 191 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum. |
| 192 | All rights reserved. |
| 193 | |
| 194 | See the file "LICENSE" for information on the history of this |
| 195 | software, terms & conditions for usage, and a DISCLAIMER OF ALL |
| 196 | WARRANTIES. |
| 197 | |
| 198 | This Python distribution contains *no* GNU General Public License |
| 199 | (GPL) code, so it may be used in proprietary projects. There are |
| 200 | interfaces to some GNU code but these are entirely optional. |
| 201 | |
| 202 | All trademarks referenced herein are property of their respective |
| 203 | holders. |