@@ -34,9 +34,8 @@ \section{Introduction}
3434Refer to the Python 2.1 documentation, or to the specific PEP, for
3535more details about any new feature that particularly interests you.
3636
37- Currently 2.1 is available in an alpha release, but the release
38- schedule calls for a beta release by late February 2001, and a final
39- release in April 2001.
37+ Currently 2.1 is available in a beta release, and the final release is
38+ planned for April 2001.
4039
4140% ======================================================================
4241\section {PEP 227: Nested Scopes }
@@ -308,25 +307,18 @@ \section{PEP 229: New Build System}
308307enable modules, a \file {setup.py} script in the top directory of the
309308Python source distribution is run at build time, and attempts to
310309discover which modules can be enabled by examining the modules and
311- header files on the system. In 2.1alpha1, there's very little you can
312- do to change \file {setup.py}'s behaviour, or to discover why a given
313- module isn't compiled. If you run into problems in 2.1alpha1, please
314- report them, and be prepared to dive into \file {setup.py} in order to
315- fix autodetection of a given library on your system. In the alpha2
316- release I plan to add ways to have more control over what the script
317- does (probably command-line arguments to \file {configure} or to
318- \file {setup.py}).
319-
320- If it turns out to be impossible to make autodetection work reliably,
321- it's possible that this change may become an optional build method
322- instead of the default, or it may even be backed out completely.
310+ header files on the system. If a module is configured in
311+ \file {Modules/Setup}, the \file {setup.py} script won't attempt to
312+ compile that module and will defer to the \file {Modules/Setup} file's
313+ contents. This provides a way to specific any strange command-line
314+ flags or libraries that are required for a specific platform.
323315
324316In another far-reaching change to the build mechanism, Neil
325317Schemenauer restructured things so Python now uses a single makefile
326318that isn't recursive, instead of makefiles in the top directory and in
327- each of the Python/, Parser/, Objects/, and Modules/ subdirectories.
328- This makes building Python faster, and also makes the build process
329- clearer and simpler.
319+ each of the \file { Python/}, \file { Parser/}, \file { Objects/} , and
320+ \file {Modules/} subdirectories. This makes building Python faster
321+ and also makes hacking the Makefiles clearer and simpler.
330322
331323\begin {seealso }
332324
@@ -429,7 +421,19 @@ \section{PEP 205: Weak References}
429421% ======================================================================
430422\section {PEP 235: Case-Insensitive Platforms and \keyword {import} }
431423
432- XXX
424+ Some operating systems have filesystems that are case-insensitive,
425+ MacOS and Windows being the primary examples; on these systems, it's
426+ impossible to distinguish the filenames \samp {FILE.PY} and
427+ \samp {file.py}, even though they do store the file's name
428+ in its original case (they're case-preserving, too).
429+
430+ In Python 2.1, the \keyword {import} statement will work to simulate
431+ case-sensitivity on case-insensitive platforms. Python will now
432+ search for the first case-sensitive match by default, raising an
433+ \exception {ImportError} if no such file is found, so \code {import file}
434+ will not import a module named \samp {FILE.PY}. Case-insensitive
435+ matching can be requested by setting the PYTHONCASEOK environment
436+ variable before starting the Python interpreter.
433437
434438% ======================================================================
435439\section {PEP 217: Interactive Display Hook }
0 commit comments