URL: https://linuxfr.org/users/vstinner/journaux/python-3-4-beta-1-est-sortie Title: Python 3.4 beta 1 est sortie Authors: Victor STINNER Date: 2013年11月26日T12:24:26+01:00 License: CC By-SA Tags: python3, python et async Score: 26 La version 3.4 beta 1 de Python est sortie le 24 novembre 2013. Cette version marque le gel des nouvelles fonctionnalités de Python 3.4. Il est donc temps de vous faire saliver avec ce qui est à venir. Pas moins de 14 PEP ont été acceptées et implémentées et 7 nouveaux modules ont été ajoutés : * PEP 428, **[a "pathlib" module](http://docs.python.org/dev/library/pathlib.html)** providing object-oriented filesystem paths * PEP 435, a standardized **["enum" module](http://docs.python.org/dev/library/enum.html)** * PEP 436, a build enhancement that will help generate introspection information for builtins: [The Argument Clinic DSL](http://www.python.org/dev/peps/pep-0436/) * PEP 442, improved semantics for object finalization: [Safe object finalization](http://www.python.org/dev/peps/pep-0442/) * PEP 443, adding single-dispatch generic functions to the standard library: [functools.singledispatch](http://docs.python.org/dev/library/functools.html#functools.singledispatch) * PEP 445, a new C API for implementing custom memory allocators: [Add new APIs to customize Python memory allocators](http://www.python.org/dev/peps/pep-0445/) * PEP 446, changing file descriptors to not be inherited by default in subprocesses: [Make newly created file descriptors non-inheritable](http://www.python.org/dev/peps/pep-0446/) * PEP 450, a **[new "statistics" module](http://docs.python.org/dev/library/statistics.html)** * PEP 451, standardizing module metadata for Python's module import system: [A ModuleSpec Type for the Import System](http://www.python.org/dev/peps/pep-0451/) * PEP 453, a bundled installer for the pip package manager: **[ensurepip](http://docs.python.org/dev/library/ensurepip.html)** * PEP 454, a **[new "tracemalloc" module](http://docs.python.org/dev/library/tracemalloc.html)** for tracing Python memory allocations * PEP 456, a new hash algorithm for Python strings and binary data: [Secure and interchangeable hash algorithm](http://www.python.org/dev/peps/pep-0456/) * PEP 3154, a new and improved protocol for pickled objects: [Pickle protocol version 4](http://www.python.org/dev/peps/pep-3154/) * **[new "selectors" module](http://docs.python.org/dev/library/selectors.html)**: High-level I/O multiplexing (surcouche à select, poll, epoll, kqueue) * PEP 3156, a **[new "asyncio" module](http://docs.python.org/dev/library/asyncio.html)**, a new framework for asynchronous I/O: [Asynchronous IO Support Rebooted: the "asyncio" Module](http://www.python.org/dev/peps/pep-3156/), module aussi connu sous nom "Tulip" (version pour Python 3.3) What’s New In Python 3.4 : http://docs.python.org/3.4/whatsnew/3.4.html Python 3.4 (beta 1), avec lien de téléchargement : http://www.python.org/download/releases/3.4.0/ PEP 429: "Python 3.4 Release Schedule" http://www.python.org/dev/peps/pep-0429/ La version 3.4 finale est prévue pour le 23 février 2014. En attendant, testez la béta avec vos applications favorites ! J'espère que asyncio va permettre d'unifier Twisted, Tornado, gevent, eventlet, gunicorn, etc. Et que de plus en plus de biliothèques vont être "compatible asyncio" pour pouvoir facilement faire de la programmation asynchrone sur n'importe quel type de connexion : signaux, processus, connexion à une base de données, serveur web, serveur UDP, etc. Pour moi, c'est la fonctionnalité qui tue de Python 3.4 ! Pour ma part, j'ai écrit les PEP 446 (non-inheritable files and sockets), 445 (malloc API) et 454 (tracemalloc). Les fichiers et sockets non héritables évitent de vilaines race condition et surtout des failles de sécurité quand on lance des programmes (subprocess), surtout quand on fait ça avec des threads. tracemalloc permet de facilement tracer les fuites mémoires.

AltStyle によって変換されたページ (->オリジナル) /