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
b2a61e1e
Commit
b2a61e1e
authored
Sep 05, 2012
by
Eric Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add whatsnew entry for PEP 421
parent
5b4faae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.3.rst
+35
-0
No files found.
Doc/whatsnew/3.3.rst
View file @
b2a61e1e
...
...
@@ -564,6 +564,41 @@ which considerably simplifies writing decorators and any code that validates
or
amends
calling
signatures
or
arguments
.
PEP
421
:
Adding
sys
.
implementation
==================================
:
pep
:`
421
`
-
Adding
sys
.
implementation
PEP
written
and
implemented
by
Eric
Snow
.
A
new
attribute
on
the
:
mod
:`
sys
`
module
exposes
details
specific
to
the
implementation
of
the
currently
running
interpreter
.
The
initial
set
of
attributes
on
:
attr
:`
sys
.
implementation
`
are
``
name
``,
``
version
``,
``
hexversion
``,
and
``
cache_tag
``.
The
intention
of
``
sys
.
implementation
``
is
to
consolidate
into
one
namespace
the
implementation
-
specific
data
used
by
the
standard
library
.
This
allows
different
Python
implementations
to
share
a
single
standard
library
code
base
much
more
easily
.
In
its
initial
state
,
``
sys
.
implementation
``
holds
only
a
small
portion
of
the
implementation
-
specific
data
.
Over
time
that
ratio
will
shift
in
order
to
make
the
standard
library
more
portable
.
One
example
of
improved
standard
library
portability
is
``
cache_tag
``.
As
of
Python
3.3
,
``
sys
.
implementation
.
cache_tag
``
is
used
by
:
mod
:`
importlib
`
to
support
:
pep
:`
3147
`
compliance
.
Any
Python
implementation
that
uses
``
importlib
``
for
its
built
-
in
import
system
may
use
``
cache_tag
``
to
control
the
caching
behavior
for
modules
.
SimpleNamespace
---------------
The
implementation
of
``
sys
.
implementation
``
also
introduces
a
new
type
to
Python
:
:
class
:`
types
.
SimpleNamespace
`.
In
contrast
to
a
mapping
-
based
namespace
,
like
:
class
:`
dict
`,
``
SimpleNamespace
``
is
attribute
-
based
,
like
:
class
:`
object
`.
However
,
unlike
``
object
``,
``
SimpleNamespace
``
instances
are
writable
.
This
means
that
you
can
add
,
remove
,
and
modify
the
namespace
through
normal
attribute
access
.
..
_importlib
:
Using
importlib
as
the
Implementation
of
Import
...
...
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