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
81eb32e5
Commit
81eb32e5
authored
Jan 02, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PEP 302 description; bump version number
parent
a95c7fb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+17
-10
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
81eb32e5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
% $Id$
% $Id$
\title
{
What's New in Python 2.3
}
\title
{
What's New in Python 2.3
}
\release
{
0.0
6
}
\release
{
0.0
7
}
\author
{
A.M. Kuchling
}
\author
{
A.M. Kuchling
}
\authoraddress
{
\email
{
amk@amk.ca
}}
\authoraddress
{
\email
{
amk@amk.ca
}}
...
@@ -717,9 +717,11 @@ Gordon McMillan's \module{iu} module. Three new items
...
@@ -717,9 +717,11 @@ Gordon McMillan's \module{iu} module. Three new items
are added to the
\module
{
sys
}
module:
are added to the
\module
{
sys
}
module:
\begin{itemize}
\begin{itemize}
\item
\code
{
sys.path
_
hooks
}
is a list of functions. Each function
\item
\code
{
sys.path
_
hooks
}
is a list of callable objects; most
takes a string containing a path and returns either
\code
{
None
}
or an
often they'll be classes. Each callable takes a string containing
importer object that will handle imports from this path.
a path and either returns an importer object that will handle imports
from this path or raises an
\exception
{
ImportError
}
exception if it
can't handle this path.
\item
\code
{
sys.path
_
importer
_
cache
}
caches importer objects for
\item
\code
{
sys.path
_
importer
_
cache
}
caches importer objects for
each path, so
\code
{
sys.path
_
hooks
}
will only need to be traversed
each path, so
\code
{
sys.path
_
hooks
}
will only need to be traversed
...
@@ -747,11 +749,16 @@ like this (simplified a bit; see \pep{302} for the full details):
...
@@ -747,11 +749,16 @@ like this (simplified a bit; see \pep{302} for the full details):
for mp in sys.meta
_
path:
for mp in sys.meta
_
path:
loader = mp(fullname)
loader = mp(fullname)
if loader is not None:
if loader is not None:
<module> = loader(fullname)
<module> = loader
.load
_
module
(fullname)
for path in sys.path:
for path in sys.path:
for hook in sys.path
_
hooks:
for hook in sys.path
_
hooks:
importer = hook(path)
try:
importer = hook(path)
except ImportError:
# ImportError, so try the other path hooks
pass
else:
if importer is not None:
if importer is not None:
loader = importer.find
_
module(fullname)
loader = importer.find
_
module(fullname)
<module> = loader.load
_
module(fullname)
<module> = loader.load
_
module(fullname)
...
@@ -2014,9 +2021,9 @@ name.
...
@@ -2014,9 +2021,9 @@ name.
The author would like to thank the following people for offering
The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this
suggestions, corrections and assistance with various drafts of this
article: Simon Brunning, Michael Chermside, Scott David Daniels,
article: Simon Brunning, Michael Chermside, Scott David Daniels,
Fred~L. Drake, Jr., Kelly Gerber, Raymond Hettinger, Michael Hudson,
Detlef Lannert,
Fred~L. Drake, Jr., Kelly Gerber, Raymond Hettinger, Michael Hudson,
Martin von L
\"
owis, Andrew MacIntyre, Lalo Martins, Gustavo Niemeyer
,
Detlef Lannert, Martin von L
\"
owis, Andrew MacIntyre, Lalo Martins
,
Neal Norwitz, Chris Reedy, Vinay Sajip, Neil Schemenauer, Jason
Gustavo Niemeyer, Neal Norwitz, Hans Nowak, Chris Reedy, Vinay Sajip,
Tishler
.
Neil Schemenauer, Jason Tishler, Just van~Rossum
.
\end
{
document
}
\end
{
document
}
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