Créer un compte gratuit
Rejoignez Calaméo pour publier et partager vos documents !
Notez et commentez vos publications favorites, téléchargez des documents, partagez vos lectures avec vos amis.
Python 3.1 - what's new?
9 pages
Publié par
Poussah
Copyright :
Tous droits réservés
What’s New in Python
Release 3.
1
A.
M.
Kuchling
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 PEP 372: Ordered Dictionaries i
2 PEP 378: Format Specifier for Thousands Separator ii
3 Other Language...
[Plus]
What’s New in Python
Release 3.
1
A.
M.
Kuchling
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 PEP 372: Ordered Dictionaries i
2 PEP 378: Format Specifier for Thousands Separator ii
3 Other Language Changes ii
4 New, Improved, and Deprecated Modules iv
5 Optimizations vi
6 IDLE vii
7 Build and C API Changes vii
8 Porting to Python 3.
1 viii
Indexix
Author Raymond Hettinger
Release 3.
1
Date June 26, 2009
This article explains the new features in Python 3.
1, compared to 3.
0.
1 PEP 372: Ordered Dictionaries
Regular Python dictionaries iterate over key/value pairs in arbitrary order.
Over the years, a number of authors
have written alternative implementations that remember the order that the keys were originally inserted.
Based on
the experiences from those implementations, a new collections.
OrderedDict class has been introduced.
The OrderedDict API is substantially the same as regular dictionaries but will iterate over keys and values in a
guaranteed
[Moins]
Tags
class,
collections,
default,
depending,
dictionaries,
existing,
implementations,
library,
module,
modules,
order,
ordered,
python,
separator,
supports,
values,
written