Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 1 | This is Python version 3.0 alpha 1 |
| 2 | ================================== |
Guido van Rossum | 9144763 | 2000-04-11 17:11:09 +0000 | [diff] [blame] | 3 | |
Thomas Wouters | 902d6eb | 2007-01-09 23:18:33 +0000 | [diff] [blame] | 4 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
| 5 | Python Software Foundation. |
Guido van Rossum | 67345eb | 2001-01-18 14:51:12 +0000 | [diff] [blame] | 6 | All rights reserved. |
| 7 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 8 | Copyright (c) 2000 BeOpen.com. |
| 9 | All rights reserved. |
| 10 | |
Guido van Rossum | 23f7aed | 2001-04-12 20:53:31 +0000 | [diff] [blame] | 11 | Copyright (c) 1995-2001 Corporation for National Research Initiatives. |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 12 | All rights reserved. |
| 13 | |
Guido van Rossum | 6ebd299 | 2000-09-03 04:47:47 +0000 | [diff] [blame] | 14 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum. |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 15 | All rights reserved. |
| 16 | |
Guido van Rossum | 4f40c2d | 2000-09-05 16:46:22 +0000 | [diff] [blame] | 17 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 18 | License information |
| 19 | ------------------- |
| 20 | |
Guido van Rossum | 4f40c2d | 2000-09-05 16:46:22 +0000 | [diff] [blame] | 21 | See the file "LICENSE" for information on the history of this |
| 22 | software, terms & conditions for usage, and a DISCLAIMER OF ALL |
| 23 | WARRANTIES. |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 24 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 25 | This Python distribution contains *no* GNU General Public License |
| 26 | (GPL) code, so it may be used in proprietary projects. There are |
| 27 | interfaces to some GNU code but these are entirely optional. |
Guido van Rossum | 4f40c2d | 2000-09-05 16:46:22 +0000 | [diff] [blame] | 28 | |
| 29 | All trademarks referenced herein are property of their respective |
| 30 | holders. |
Guido van Rossum | 7980826 | 1997-12-11 18:01:47 +0000 | [diff] [blame] | 31 | |
| 32 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 33 | About Python 3000 |
| 34 | ----------------- |
Guido van Rossum | 50e9fb9 | 2006-08-17 05:42:55 +0000 | [diff] [blame] | 35 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 36 | Python 3000 (a.k.a. "Py3k", and released as Python 3.0) is a new |
| 37 | version of the language, which is incompatible with the 2.x line of |
| 38 | releases. The language is mostly the same, but many details, |
| 39 | especially how built-in objects like dictionaries and strings work, |
| 40 | have changed considerably, and a lot of deprecated features have |
| 41 | finally been removed. |
| 42 | |
| 43 | This is an ongoing project; the cleanup isn't expected to be complete |
| 44 | until 2008. In particular there are plans to reorganize the standard |
| 45 | library namespace. |
| 46 | |
| 47 | This README hasn't been fully updated for Python 3000 yet. If you see |
| 48 | anything that should clearly be changed, fix it (if you have checkin |
| 49 | permissions) or submit a patch to the issue tracker (see below). |
Guido van Rossum | 50e9fb9 | 2006-08-17 05:42:55 +0000 | [diff] [blame] | 50 | |
| 51 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 52 | Release Schedule |
| 53 | ---------------- |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 54 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 55 | The release plan is to have a series of alpha releases in 2007, beta |
| 56 | releases in 2008, and a final release in August 2008. The alpha |
| 57 | releases are primarily aimed at developers who want a sneak peek at |
| 58 | the new langauge, especially those folks who plan to port their code |
| 59 | to Python 3000. The hope is that by the time of the final release, |
| 60 | many 3rd party packages will already be available in a 3.0-compatible |
| 61 | form. |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 +0000 | [diff] [blame] | 62 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 63 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 64 | Documentation |
| 65 | ------------- |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 66 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 67 | Documentation for Python 3000 is online, updated twice a day: |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 68 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 69 | http://docs.python.org/dev/3.0/ |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 70 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 71 | This is a work in progress; please help improve it! |
Barry Warsaw | 0655745 | 2001-12-14 20:47:12 +0000 | [diff] [blame] | 72 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 73 | The design documents for Python 3000 are also online. While the |
| 74 | reference documentation is being updated, the PEPs are often the best |
| 75 | source of information about new features. Start by reading PEP 3000: |
Barry Warsaw | 0655745 | 2001-12-14 20:47:12 +0000 | [diff] [blame] | 76 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 77 | http://python.org/dev/peps/pep-3000/ |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 78 | |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 79 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 80 | What's New |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 81 | ---------- |
| 82 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 83 | For an overview of what's new in Python 3000, see Guido van Rossum's |
| 84 | blog at artima.com: |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 85 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 86 | http://www.artima.com/weblogs/index.jsp?blogger=guido |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 87 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 88 | We'll eventually have a comprehensive overview of the changes in a |
| 89 | "What's New in Python 3.0" document. Please help write it! |
Jack Jansen | a39ef86 | 2001-08-19 21:17:03 +0000 | [diff] [blame] | 90 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 91 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 92 | Converting From Python 2.x to 3.0 |
| 93 | --------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 94 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 95 | Python 2.6 (not yet released) will contain features to help locating |
| 96 | code that needs to be changed, such as optional warnings when |
| 97 | deprecated features are used, and backported versions of certain key |
| 98 | Python 3000 features. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 99 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 100 | A source-to-source translation tool, "2to3", can take care of the |
| 101 | mundane task of converting large amounts of source code. It is not a |
| 102 | complete solution but is complemented by the deprecation warnings in |
| 103 | 2.6. This tool is currently available via the Subversion sandbox: |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 104 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 105 | http://svn.python.org/view/sandbox/trunk/2to3/ |
Martin v. Löwis | 2df6694 | 2000-12-13 14:14:32 +0000 | [diff] [blame] | 106 | |
| 107 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 108 | Issue Tracker and Mailing List |
| 109 | ------------------------------ |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 +0000 | [diff] [blame] | 110 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 111 | We're soliciting bug reports about all aspects of the language. Fixes |
| 112 | are also welcome, preferable in unified diff format. Please use the |
| 113 | issue tracker: |
Fred Drake | 6caae14 | 2000-10-25 17:51:02 +0000 | [diff] [blame] | 114 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 115 | http://bugs.python.org/ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 116 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 117 | If you're not sure whether you're dealing with a bug or a feature, use |
| 118 | the mailing list: |
| 119 | |
| 120 | python-3000@python.org |
| 121 | |
| 122 | To subscribe to the list, use the mailman form: |
| 123 | |
| 124 | http://mail.python.org/mailman/listinfo/python-3000/ |
Georg Brandl | 81299ad | 2006-02-20 10:24:06 +0000 | [diff] [blame] | 125 | |
Michael W. Hudson | 71dcc3e | 2005-02-22 15:33:26 +0000 | [diff] [blame] | 126 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 127 | Build Instructions |
Guido van Rossum | c07d5fa | 2000-09-01 22:50:02 +0000 | [diff] [blame] | 128 | ------------------ |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 129 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 130 | On Unix, Linx, BSD, OSX, and Cygwin: |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 131 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 132 | ./configure |
| 133 | make |
| 134 | make test |
| 135 | sudo make install # or "make altinstall" |
| 136 | |
| 137 | You can pass many options to the configure script; run "./configure |
| 138 | --help" to find out more. On OSX and Cygwin, the executable is called |
| 139 | python.exe; elsewhere it's just python. |
| 140 | |
| 141 | On Mac OS X, if you have configured Python with --enable-framework, |
| 142 | you should use "make frameworkinstall" to do the installation. Note |
| 143 | that this installs the Python executable in a place that is not |
| 144 | normally on your PATH, you may want to set up a symlink in |
| 145 | /usr/local/bin. |
| 146 | |
Martin v. Löwis | 0c3842f | 2007-08-30 05:34:10 +0000 | [diff] [blame^] | 147 | On Windows, see PCbuild/readme.txt. |
| 148 | |
Guido van Rossum | 1c896e3 | 2007-08-29 23:03:30 +0000 | [diff] [blame] | 149 | If you wish, you can create a subdirectory and invoke configure from |
| 150 | there. For example: |
| 151 | |
| 152 | mkdir debug |
| 153 | cd debug |
| 154 | ../configure --with-pydebug |
| 155 | make |
| 156 | make test |
| 157 | |
| 158 | (This will fail if you *also* built at the top-level directory. You |
| 159 | should do a "make clean" at the toplevel first.) |