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
01875eba
Commit
01875eba
authored
Dec 31, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Broke the zipimport/PEP 302 news item into two separate items.
parent
f8b6de16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
Misc/NEWS
Misc/NEWS
+12
-9
No files found.
Misc/NEWS
View file @
01875eba
...
...
@@ -79,18 +79,21 @@ Core and builtins
-----------------
-
Import
from
zipfiles
is
now
supported
.
The
name
of
a
zipfile
placed
on
sys
.
path
causes
the
import
statement
to
look
for
importable
Python
modules
(
with
.
py
,
pyc
and
.
pyo
extensions
)
and
packages
inside
the
zipfile
.
To
support
this
,
several
new
variables
have
been
added
to
the
sys
module
:
sys
.
meta_path
,
sys
.
path_hooks
,
and
sys
.
path_importer_cache
;
these
make
extending
the
import
statement
much
more
convenient
than
overriding
the
__import__
built
-
in
function
.
For
a
description
of
these
,
see
PEP
302.
The
zipfile
import
follows
the
specification
(
though
not
the
sample
implementation
)
of
PEP
273.
The
semantics
of
__path__
are
on
sys
.
path
causes
the
import
statement
to
look
for
importable
Python
modules
(
with
.
py
,
pyc
and
.
pyo
extensions
)
and
packages
inside
the
zipfile
.
The
zipfile
import
follows
the
specification
(
though
not
the
sample
implementation
)
of
PEP
273.
The
semantics
of
__path__
are
compatible
with
those
that
have
been
implemented
in
Jython
since
Jython
2.1
.
-
PEP
302
has
been
accepted
.
Although
it
was
inititally
developed
to
support
zipimport
,
it
offers
a
new
,
general
import
hook
mechanism
.
Several
new
variables
have
been
added
to
the
sys
module
:
sys
.
meta_path
,
sys
.
path_hooks
,
and
sys
.
path_importer_cache
;
these
make
extending
the
import
statement
much
more
convenient
than
overriding
the
__import__
built
-
in
function
.
For
a
description
of
these
,
see
PEP
302.
-
A
frame
object
's f_lineno attribute can now be written to from a
trace function to change which line will execute next. A command to
exploit this from pdb has been added. [SF patch #643835]
...
...
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