Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7ee0c761
Commit
7ee0c761
authored
Feb 28, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description of PEP235
Remove references to 2.1alpha Update description of PEP229
parent
1d0921a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
Doc/whatsnew/whatsnew21.tex
Doc/whatsnew/whatsnew21.tex
+23
-19
No files found.
Doc/whatsnew/whatsnew21.tex
View file @
7ee0c761
...
...
@@ -34,9 +34,8 @@ provides an overview of the new features for Python programmers.
Refer to the Python 2.1 documentation, or to the specific PEP, for
more details about any new feature that particularly interests you.
Currently 2.1 is available in an alpha release, but the release
schedule calls for a beta release by late February 2001, and a final
release in April 2001.
Currently 2.1 is available in a beta release, and the final release is
planned for April 2001.
%======================================================================
\section
{
PEP 227: Nested Scopes
}
...
...
@@ -308,25 +307,18 @@ Instead of having to edit the \file{Modules/Setup} file in order to
enable modules, a
\file
{
setup.py
}
script in the top directory of the
Python source distribution is run at build time, and attempts to
discover which modules can be enabled by examining the modules and
header files on the system. In 2.1alpha1, there's very little you can
do to change
\file
{
setup.py
}
's behaviour, or to discover why a given
module isn't compiled. If you run into problems in 2.1alpha1, please
report them, and be prepared to dive into
\file
{
setup.py
}
in order to
fix autodetection of a given library on your system. In the alpha2
release I plan to add ways to have more control over what the script
does (probably command-line arguments to
\file
{
configure
}
or to
\file
{
setup.py
}
).
If it turns out to be impossible to make autodetection work reliably,
it's possible that this change may become an optional build method
instead of the default, or it may even be backed out completely.
header files on the system. If a module is configured in
\file
{
Modules/Setup
}
, the
\file
{
setup.py
}
script won't attempt to
compile that module and will defer to the
\file
{
Modules/Setup
}
file's
contents. This provides a way to specific any strange command-line
flags or libraries that are required for a specific platform.
In another far-reaching change to the build mechanism, Neil
Schemenauer restructured things so Python now uses a single makefile
that isn't recursive, instead of makefiles in the top directory and in
each of the
Python/, Parser/, Objects/, and Modules/ subdirectories.
This makes building Python faster, and also makes the build process
clearer and simpler.
each of the
\file
{
Python/
}
,
\file
{
Parser/
}
,
\file
{
Objects/
}
, and
\file
{
Modules/
}
subdirectories. This makes building Python faster
and also makes hacking the Makefiles
clearer and simpler.
\begin{seealso}
...
...
@@ -429,7 +421,19 @@ Fred~L. Drake,~Jr.}
%======================================================================
\section
{
PEP 235: Case-Insensitive Platforms and
\keyword
{
import
}}
XXX
Some operating systems have filesystems that are case-insensitive,
MacOS and Windows being the primary examples; on these systems, it's
impossible to distinguish the filenames
\samp
{
FILE.PY
}
and
\samp
{
file.py
}
, even though they do store the file's name
in its original case (they're case-preserving, too).
In Python 2.1, the
\keyword
{
import
}
statement will work to simulate
case-sensitivity on case-insensitive platforms. Python will now
search for the first case-sensitive match by default, raising an
\exception
{
ImportError
}
if no such file is found, so
\code
{
import file
}
will not import a module named
\samp
{
FILE.PY
}
. Case-insensitive
matching can be requested by setting the PYTHONCASEOK environment
variable before starting the Python interpreter.
%======================================================================
\section
{
PEP 217: Interactive Display Hook
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment