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
636130ed
Commit
636130ed
authored
Aug 05, 2012
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
What's New in Python 3.3: Split improved and new modules, start to write a summary
parent
8f17c1c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
45 deletions
+60
-45
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.3.rst
+60
-45
No files found.
Doc/whatsnew/3.3.rst
View file @
636130ed
...
@@ -53,6 +53,18 @@ This article explains the new features in Python 3.3, compared to 3.2.
...
@@ -53,6 +53,18 @@ This article explains the new features in Python 3.3, compared to 3.2.
release
,
so
it
's worth checking back even after reading earlier versions.
release
,
so
it
's worth checking back even after reading earlier versions.
Summary
=======
Major changes since Python 3.2:
* 4 new modules: :mod:`faulthandler`, :mod:`ipaddress`, :mod:`lzma` and :mod:`venv`.
* Syntax changes:
- ``u'
unicode
'`` syntax is accepted again
- Add ``yield from`` syntax
PEP 405: Virtual Environments
PEP 405: Virtual Environments
=============================
=============================
...
@@ -803,8 +815,54 @@ Builtin functions and types
...
@@ -803,8 +815,54 @@ Builtin functions and types
matching
.
For
example
,
``
'ß'
.
casefold
()``
returns
``
'ss'
``.
matching
.
For
example
,
``
'ß'
.
casefold
()``
returns
``
'ss'
``.
New
and
Improved
Modules
New
Modules
========================
===========
faulthandler
------------
This
new
debug
module
contains
functions
to
dump
Python
tracebacks
explicitly
,
on
a
fault
(
a
crash
like
a
segmentation
fault
),
after
a
timeout
,
or
on
a
user
signal
.
Call
:
func
:`
faulthandler
.
enable
`
to
install
fault
handlers
for
the
:
const
:`
SIGSEGV
`,
:
const
:`
SIGFPE
`,
:
const
:`
SIGABRT
`,
:
const
:`
SIGBUS
`,
and
:
const
:`
SIGILL
`
signals
.
You
can
also
enable
them
at
startup
by
setting
the
:
envvar
:`
PYTHONFAULTHANDLER
`
environment
variable
or
by
using
:
option
:`-
X
`
``
faulthandler
``
command
line
option
.
Example
of
a
segmentation
fault
on
Linux
:
::
$
python
-
q
-
X
faulthandler
>>>
import
ctypes
>>>
ctypes
.
string_at
(
0
)
Fatal
Python
error
:
Segmentation
fault
Current
thread
0x00007fb899f39700
:
File
"/home/python/cpython/Lib/ctypes/__init__.py"
,
line
486
in
string_at
File
"<stdin>"
,
line
1
in
<
module
>
Segmentation
fault
ipaddress
---------
The
new
:
mod
:`
ipaddress
`
module
provides
tools
for
creating
and
manipulating
objects
representing
IPv4
and
IPv6
addresses
,
networks
and
interfaces
(
i
.
e
.
an
IP
address
associated
with
a
specific
IP
subnet
).
(
Contributed
by
Google
and
Peter
Moody
in
:
pep
:`
3144
`)
lzma
----
The
newly
-
added
:
mod
:`
lzma
`
module
provides
data
compression
and
decompression
using
the
LZMA
algorithm
,
including
support
for
the
``.
xz
``
and
``.
lzma
``
file
formats
.
(
Contributed
by
Nadeem
Vawda
and
Per
Ø
yvind
Karlsen
in
:
issue
:`
6715
`)
Improved
Modules
================
abc
abc
---
---
...
@@ -1062,30 +1120,6 @@ API changes
...
@@ -1062,30 +1120,6 @@ API changes
changed
to
match
the
order
displayed
by
:
func
:`
repr
`.
changed
to
match
the
order
displayed
by
:
func
:`
repr
`.
faulthandler
------------
This
new
debug
module
contains
functions
to
dump
Python
tracebacks
explicitly
,
on
a
fault
(
a
crash
like
a
segmentation
fault
),
after
a
timeout
,
or
on
a
user
signal
.
Call
:
func
:`
faulthandler
.
enable
`
to
install
fault
handlers
for
the
:
const
:`
SIGSEGV
`,
:
const
:`
SIGFPE
`,
:
const
:`
SIGABRT
`,
:
const
:`
SIGBUS
`,
and
:
const
:`
SIGILL
`
signals
.
You
can
also
enable
them
at
startup
by
setting
the
:
envvar
:`
PYTHONFAULTHANDLER
`
environment
variable
or
by
using
:
option
:`-
X
`
``
faulthandler
``
command
line
option
.
Example
of
a
segmentation
fault
on
Linux
:
::
$
python
-
q
-
X
faulthandler
>>>
import
ctypes
>>>
ctypes
.
string_at
(
0
)
Fatal
Python
error
:
Segmentation
fault
Current
thread
0x00007fb899f39700
:
File
"/home/python/cpython/Lib/ctypes/__init__.py"
,
line
486
in
string_at
File
"<stdin>"
,
line
1
in
<
module
>
Segmentation
fault
ftplib
ftplib
------
------
...
@@ -1155,25 +1189,6 @@ written on the :class:`~io.TextIOWrapper` object is immediately handled to its
...
@@ -1155,25 +1189,6 @@ written on the :class:`~io.TextIOWrapper` object is immediately handled to its
underlying binary buffer.
underlying binary buffer.
ipaddress
---------
The new :mod:`ipaddress` module provides tools for creating and manipulating
objects representing IPv4 and IPv6 addresses, networks and interfaces (i.e.
an IP address associated with a specific IP subnet).
(Contributed by Google and Peter Moody in :pep:`3144`)
lzma
----
The newly-added :mod:`lzma` module provides data compression and decompression
using the LZMA algorithm, including support for the ``.xz`` and ``.lzma``
file formats.
(Contributed by Nadeem Vawda and Per Øyvind Karlsen in :issue:`6715`)
math
math
----
----
...
...
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