@@ -5,11 +5,10 @@ Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
55Python Software Foundation.
66All rights reserved.
77
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.
8+ Python 3.x is a new version of the language, which is incompatible with the 2.x
9+ line of releases. The language is mostly the same, but many details, especially
10+ how built-in objects like dictionaries and strings work, have changed
11+ considerably, and a lot of deprecated features have finally been removed.
1312
1413
1514Build Instructions
@@ -24,29 +23,28 @@ On Unix, Linux, BSD, OSX, and Cygwin:
2423
2524This will install Python as python3.
2625
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.
26+ You can pass many options to the configure script; run "./configure --help" to
27+ find out more. On OSX and Cygwin, the executable is called python.exe;
28+ elsewhere it's just python.
3029
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.
30+ On Mac OS X, if you have configured Python with --enable-framework, you should
31+ use "make frameworkinstall" to do the installation. Note that this installs the
32+ Python executable in a place that is not normally on your PATH, you may want to
33+ set up a symlink in /usr/local/bin.
3634
3735On Windows, see PCbuild/readme.txt.
3836
39- If you wish, you can create a subdirectory and invoke configure from
40- there. For example:
37+ If you wish, you can create a subdirectory and invoke configure from there. For
38+ example:
4139
4240 mkdir debug
4341 cd debug
4442 ../configure --with-pydebug
4543 make
4644 make test
4745
48- (This will fail if you *also* built at the top-level directory. You
49- should do a "make clean" at the toplevel first.)
46+ (This will fail if you *also* built at the top-level directory. You should do a
47+ "make clean" at the toplevel first.)
5048
5149
5250What's New
@@ -57,9 +55,9 @@ Python 3.2" document, found at
5755
5856 http://docs.python.org/dev/3.2/whatsnew/3.2.html
5957
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).
58+ For a more detailed change log, read Misc/NEWS (though this file, too, is
59+ incomplete, and also doesn't list anything merged in from the 2.7 release under
60+ development).
6361
6462If you want to install multiple versions of Python see the section below
6563entitled "Installing multiple versions".
@@ -81,9 +79,9 @@ formatting requirements.
8179Converting From Python 2.x to 3.x
8280---------------------------------
8381
84- Python starting with 2.6 contains features to help locating code that
85- needs to be changed, such as optional warnings when deprecated features are
86- used, and backported versions of certain key Python 3.x features.
82+ Python starting with 2.6 contains features to help locating code that needs to
83+ be changed, such as optional warnings when deprecated features are used, and
84+ backported versions of certain key Python 3.x features.
8785
8886A source-to-source translation tool, "2to3", can take care of the mundane task
8987of converting large amounts of source code. It is not a complete solution but
@@ -94,60 +92,58 @@ http://docs.python.org/dev/library/2to3.html for more information.
9492Testing
9593-------
9694
97- To test the interpreter, type "make test" in the top-level directory.
98- This runs the test set twice (once with no compiled files, once with
99- the compiled files left by the previous test run). The test set
100- produces some output. You can generally ignore the messages about
101- skipped tests due to optional features which can't be imported.
102- If a message is printed about a failed test or a traceback or core
103- dump is produced, something is wrong. On some Linux systems (those
104- that are not yet using glibc 6), test_strftime fails due to a
105- non-standard implementation of strftime() in the C library. Please
106- ignore this, or upgrade to glibc version 6.
95+ To test the interpreter, type "make test" in the top-level directory. This runs
96+ the test set twice (once with no compiled files, once with the compiled files
97+ left by the previous test run). The test set produces some output. You can
98+ generally ignore the messages about skipped tests due to optional features which
99+ can't be imported. If a message is printed about a failed test or a traceback
100+ or core dump is produced, something is wrong. On some Linux systems (those that
101+ are not yet using glibc 6), test_strftime fails due to a non-standard
102+ implementation of strftime() in the C library. Please ignore this, or upgrade to
103+ glibc version 6.
107104
108105By default, tests are prevented from overusing resources like disk space and
109106memory. To enable these tests, run "make testall".
110107
111- IMPORTANT: If the tests fail and you decide to mail a bug report,
112- *don't* include the output of "make test". It is useless. Run the
113- failing test manually, as follows:
108+ IMPORTANT: If the tests fail and you decide to mail a bug report, *don't*
109+ include the output of "make test". It is useless. Run the failing test
110+ manually, as follows:
114111
115112 ./python Lib/test/regrtest.py -v test_whatever
116113
117- (substituting the top of the source tree for '.' if you built in a
118- different directory). This runs the test in verbose mode.
114+ (substituting the top of the source tree for '.' if you built in a different
115+ directory). This runs the test in verbose mode.
119116
120117
121118Installing multiple versions
122119----------------------------
123120
124121On Unix and Mac systems if you intend to install multiple versions of Python
125- using the same installation prefix (--prefix argument to the configure
126- script) you must take care that your primary python executable is not
127- overwritten by the installation of a different version. All files and
128- directories installed using "make altinstall" contain the major and minor
129- version and can thus live side-by-side. "make install" also creates
130- ${prefix}/bin/python3 which refers to ${prefix}/bin/ pythonX.Y. If you intend
131- to install multiple versions using the same prefix you must decide which
132- version (if any) is your "primary" version . Install that version using
133- "make install". Install all other versions using "make altinstall".
122+ using the same installation prefix (--prefix argument to the configure script)
123+ you must take care that your primary python executable is not overwritten by the
124+ installation of a different version. All files and directories installed using
125+ "make altinstall" contain the major and minor version and can thus live
126+ side-by-side. "make install" also creates ${prefix}/bin/python3 which refers to
127+ ${prefix}/bin/pythonX.Y. If you intend to install multiple versions using the
128+ same prefix you must decide which version (if any) is your "primary" version.
129+ Install that version using "make install" . Install all other versions using
130+ "make altinstall".
134131
135- For example, if you want to install Python 2.5, 2.6 and 3.2 with 2.6 being
136- the primary version, you would execute "make install" in your 2.6 build
137- directory and "make altinstall" in the others.
132+ For example, if you want to install Python 2.5, 2.6 and 3.2 with 2.6 being the
133+ primary version, you would execute "make install" in your 2.6 build directory
134+ and "make altinstall" in the others.
138135
139136
140137Issue Tracker and Mailing List
141138------------------------------
142139
143- We're soliciting bug reports about all aspects of the language. Fixes
144- are also welcome, preferable in unified diff format. Please use the
145- issue tracker:
140+ We're soliciting bug reports about all aspects of the language. Fixes are also
141+ welcome, preferable in unified diff format. Please use the issue tracker:
146142
147143 http://bugs.python.org/
148144
149- If you're not sure whether you're dealing with a bug or a feature, use
150- the mailing list:
145+ If you're not sure whether you're dealing with a bug or a feature, use the
146+ mailing list:
151147
152148153149
0 commit comments