Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...memoryview object from 3.x Set literals Set and dictionary comprehensions Dictionary views New syntax for nested with statements The sysconfig module See these resources for further information: What's new in 2.7? Change log for this release. Online Documentation Report bugs at http://bugs.python.org. Help fund Python and its community. Download This is a production release. Please report any bugs you encounter. We currently support these formats for download: Gzipped source tar ball (2.7...
...memoryview object from 3.x Set literals Set and dictionary comprehensions Dictionary views New syntax for nested with statements The sysconfig module Binary installer support for OS X 10.4 and 10.3.9 to be discontinued Python 2.7.8 is the last release for which binary installers will be released on python.org that support Mac OS X 10.3.9 (Panther) and 10.4.x (Tiger) systems. For Python 2.7.8 only, we are providing three OS X binary installers: the unchanged 10.6+ 64-bit/32-bit format, the de...
Version: None
Released: April 9, 2012
Note: A newer bugfix release, 2.7.4, is currently available. Its use is recommended over previous versions of 2.7. Python 2.7.3 was released on April 9, 2012. 2.7.3 includes fixes for several reported security issues in 2.7.2: issue 13703 (oCERT-2011-003, hash collision denial of service), issue 14234 (CVE-2012-0876, hash table …
View Release Notes
Released: July 2, 2014
Python 2.7.8 was released on July 1, 2014. This release includes regression and security fixes over 2.7.7 including: The openssl version bundled in the Windows installer has been updated. A regression in the mimetypes module on Windows has been fixed. A possible overflow in the buffer type has been fixed. …
...memoryview(...) on them to get additional information about the underlying buffer (such as the original type, shape, etc.). In addition, PickleBuffer objects have the following methods: raw() Return a memoryview of the raw memory bytes underlying the PickleBuffer, erasing any shape, strides and format information. This is required to handle Fortran-contiguous buffers correctly in the pure Python pickle implementation. release() Release the PickleBuffer's underlying buffer, making it unusable....
...MemoryView API so that naming is internally consistent; add macros PyMemoryView_GET_BASE() and PyMemoryView_GET_BUFFER() to access useful properties of a memory views without relying on a particular implementation; remove the ill-named PyMemoryView() function (PyMemoryView_GET_BUFFER() can be used instead). ctypes function pointers that are COM methods have a boolean True value again. Issue #1819: function calls with several named parameters are now on average 35% faster (as measured by pybenc...
...memoryview). It is highly RECOMMENDED that the length of the input influences the outcome, so that hash(b'\00') != hash(b'\x00\x00'). The internal interface code between the hash function and the tp_hash slots implements special cases for zero length input and a return value of -1. An input of length 0 is mapped to hash value 0. The output -1 is mapped to -2. Current implementation with modified FNV CPython currently uses a variant of the Fowler-Noll-Vo hash function [fnv]. The variant is has...
...memoryview, array.array, bytearray, bytes [5]http://docs.python.org/3/reference/datamodel.html#object.__bytes__ [6]https://mail.python.org/pipermail/python-dev/2014-February/132750.html [7](1, 2) http://bugs.python.org/issue23467 -- originally %r was not allowed, but was added for consistency during the 3.5 alpha stage. Copyright This document has been placed in the public domain. Source: https://github.com/python/peps/blob/master/pep-0461.txt
...memoryview range tuple Note Although str, bytes, and bytearray are usually considered sequences, they are not included in the above list and do not match sequence patterns. A fixed-length sequence pattern fails if the length of the subject sequence is not equal to the number of subpatterns. A variable-length sequence pattern fails if the length of the subject sequence is less than the number of non-star subpatterns. The length of the subject sequence is obtained using the builtin len() functi...
...memoryview and array.array). Mapping Patterns Dictionaries or mappings in general are one of the most important and most widely used data structures in Python. In contrast to sequences, mappings are built for fast direct access to arbitrary elements identified by a key. In most cases an element is retrieved from a dictionary by a known key without regard for any ordering or other key-value pairs stored in the same dictionary. Particularly common are string keys. The mapping pattern reflects ...
...memoryview or array.array objects, for several reasons. Of course this could be added if someone wants it, but these types would require quite a bit of additional work beyond __matmul__ before they could be used for numeric work -- e.g., they have no way to do addition or scalar multiplication either! -- and adding such functionality is beyond the scope of this PEP. In addition, providing a quality implementation of matrix multiplication is highly non-trivial. Naive nested loop implementation...
...memoryview). Support for this is not fundamental to channels and can be added on later without much disruption. Auto-run in a thread The PEP proposes a hard separation between subinterpreters and threads: if you want to run in a thread you must create the thread yourself and call run() in it. However, it might be convenient if run() could do that for you, meaning there would be less boilerplate. Furthermore, we anticipate that users will want to run in a thread much more often than not. So i...