Python 3.4.0 first alpha released

    imageSo, strictly on schedule , the first alpha version of Python 3.4 was released. The new version includes many improvements to the 3.x branch, including hundreds of minor improvements and bug fixes.

    The main features of release 3.4 at the moment:

    • PEP 435, the “enum” module, which is now part of the standard library;
    • PEP 442, improved semantics for finalizing objects;
    • PEP 443, single-dispatch generic functions
    • PEP 445, the new C API that allows you to implement custom memory allocators.

    You can pick up the link: http://www.python.org

    A complete list of innovations

    What's new?
    New syntax features:
    • nothing yet

    New built-in modules:

    Implementation Improvements:
    Improvements to the built-in modules:
    • in hashlib appeared SHA-3 support (Keccak);
    • ssl now supports TLSv1.1 and TLSv1.2.

    Optimization
    The UTF-32 decoder is now 3-4 times faster.

    PEP 445 : Added a new API for customizing memory allocators in Python.
    It was required to be used in CPython, but it is possible that it will be useful for other purposes.

    PEP 442 : Safe Finalization of Objects
    This PEP removes all current tricks and restrictions regarding finalizing an object. There are objects with __del __ () methods with it , like generators with finallycan also be finalized when they are part of the reference cycle. According to the new scheme, the finalizer of an object is always called exactly once. In addition, for this PEP you will not need to change something in the already written code - objects with existing finalizers will automatically follow this behavior.

    Also popular now: