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.
PEP 368 -- Standard image protocol and class PEP:368 Title:Standard image protocol and class Author:Lino Mastrodomenico <l.mastrodomenico at gmail.com> Status:Deferred Type:Standards Track Created:28-Jun-2007 Python-Version:2.6, 3.0 Post-History: Contents Abstract PEP Deferral Rationale Specification Python API Mode Objects Image Protocol Image and ImageMixin Classes Line Objects Pixel Objects ImageSize Class C API Examples Backwards Compatibility Reference Implement...
Python 2.4.1 - Release Notes (editors: check NEWS.help for information about editing NEWS using ReST.) What's New in Python 2.4.1 final? Release date: 30-MAR-2005 Core and builtins Move exception finalisation later in the shutdown process - this fixes the crash seen in bug #1165761 Tests SF patch 1167316: doctest.py fails self-test if run directly. Build SF patch 1171767: Darwin 8's headers are anal about POSIX compliance, and linking has changed (prebinding is now deprecated, and l...
...efficiency-minded programmers will be able to use fewer parentheses) if this is evaluated as Mat @ (Mat @ vec) then if it is evaluated like (Mat @ Mat) @ vec. However, weighing against these arguments are the following: Regarding the efficiency argument, empirically, we were unable to find any evidence that Mat @ Mat @ vec type expressions actually dominate in real-life code. Parsing a number of large projects that use numpy, we found that when forced by numpy's current funcall syntax to choose ...
...algorithmic complexity point of view, with allowances only needing to be made for the initial implicit O(n) cache refresh that runs the first time an operation that relies on the cache being up to date is executed. the claim that a cache-free implementation would be simpler is highly suspect, as PEP 667 includes only a pure Python sketch of a subset of a mutable mapping implementation, rather than a full-fledged C implementation of a new mapping type integrated with the underlying data storage f...
PEP 342 -- Coroutines via Enhanced Generators PEP:342 Title:Coroutines via Enhanced Generators Author:Guido van Rossum, Phillip J. Eby Status:Final Type:Standards Track Created:10-May-2005 Python-Version:2.5 Post-History: Contents Introduction Motivation Specification Summary Specification: Sending Values into Generators New generator method: send(value) New syntax: Yield Expressions Specification: Exceptions and Cleanup New syntax: yield allowed inside try-finally New gener...
...efficiency, not security. If new project delegations were prepended to unclaimed metadata, unclaimed would need to be re-downloaded every time a project obtained a key. By separating out new projects, the amount of data retrieved is reduced. From a usability standpoint, it also makes it easier for administrators to see which projects are now claimed. This information is needed when moving keys from recently-claimed to claimed, which is discussed in more detail in the "Producing Consistent Sn...
PEP 598 -- Introducing incremental feature releases PEP:598 Title:Introducing incremental feature releases Author:Nick Coghlan <ncoghlan at gmail.com> Discussions-To:https://discuss.python.org/t/pep-596-python-3-9-release-schedule-doubling-the-release-cadence/1828 Status:Withdrawn Type:Informational Created:15-Jun-2019 Python-Version:3.9 Contents Abstract PEP Withdrawal Summary Example Future Release Schedules Proposal Baseline feature releases and feature release series...
PEP 420 -- Implicit Namespace Packages PEP:420 Title:Implicit Namespace Packages Author:Eric V. Smith <eric at trueblade.com> Status:Final Type:Standards Track Created:19-Apr-2012 Python-Version:3.3 Post-History: Resolution:https://mail.python.org/pipermail/python-dev/2012-May/119651.html Contents Abstract Terminology Namespace packages today Rationale Specification Dynamic path computation Impact on import finders and loaders Differences between namespace packages and ...
PEP 572 -- Assignment Expressions PEP:572 Title:Assignment Expressions Author:Chris Angelico <rosuav at gmail.com>, Tim Peters <tim.peters at gmail.com>, Guido van Rossum <guido at python.org> Status:Accepted Type:Standards Track Created:28-Feb-2018 Python-Version:3.8 Post-History:28-Feb-2018, 02-Mar-2018, 23-Mar-2018, 04-Apr-2018, 17-Apr-2018, 25-Apr-2018, 09-Jul-2018, 05-Aug-2019 Resolution:https://mail.python.org/pipermail/python-dev/2018-July/154601.html ...
PEP 550 -- Execution Context PEP:550 Title:Execution Context Author:Yury Selivanov <yury at edgedb.com>, Elvis Pranskevichus <elvis at edgedb.com> Status:Withdrawn Type:Standards Track Created:11-Aug-2017 Python-Version:3.7 Post-History:11-Aug-2017, 15-Aug-2017, 18-Aug-2017, 25-Aug-2017, 01-Sep-2017 Contents Abstract PEP Status Rationale Goals High-Level Specification Regular Single-threaded Code Multithreaded Code Generators Coroutines and Asynchronous Tasks Det...
...efficiency when reusing an operation, it is best to use the .setinputsizes() method to specify the parameter types and sizes ahead of time. It is legal for a parameter to not match the predefined information; the implementation should compensate, possibly with a loss of efficiency. The parameters may also be specified as list of tuples to e.g. insert multiple rows in a single operation, but this kind of usage is deprecated: .executemany() should be used instead. Return values are not defined. ...
PEP 8 -- Style Guide for Python Code PEP:8 Title:Style Guide for Python Code Author:Guido van Rossum <guido at python.org>, Barry Warsaw <barry at python.org>, Nick Coghlan <ncoghlan at gmail.com> Status:Active Type:Process Created:05-Jul-2001 Post-History:05-Jul-2001, 01-Aug-2013 Contents Introduction A Foolish Consistency is the Hobgoblin of Little Minds Code Lay-out Indentation Tabs or Spaces? Maximum Line Length Should a Line Break Before or After a Binary...
Notes (editors: check NEWS.help for information about editing NEWS using ReST.) What's New in Python 2.3.5? Release date: 08-FEB-2005 Core and builtins Partially revert the fix for #1074011; don't try to fflush stdin anymore. Library Applied a security fix to SimpleXMLRPCserver (PSF-2005-001). This disables recursive traversal through instance attributes, which can be exploited in various ways. Bug #1114776. Applied a fix to the copy.py fix in 2.3.5rc1 to deal with types that don't hav...
PEP 622 -- Structural Pattern Matching PEP:622 Title:Structural Pattern Matching Author:Brandt Bucher <brandt at python.org>, Daniel F Moisset <dfmoisset at gmail.com>, Tobias Kohn <kohnt at tobiaskohn.ch>, Ivan Levkivskyi <levkivskyi at gmail.com>, Guido van Rossum <guido at python.org>, Talin <viridia at gmail.com> BDFL-Delegate: Discussions-To:python-dev at python.org Status:Superseded Type:Standards Track Created:23-Jun-2020 Python-Version:3....
PEP 253 -- Subtyping Built-in Types PEP:253 Title:Subtyping Built-in Types Author:guido at python.org (Guido van Rossum) Status:Final Type:Standards Track Created:14-May-2001 Python-Version:2.2 Post-History: Contents Abstract Introduction About metatypes Making a type a factory for its instances Preparing a type for subtyping Creating a subtype of a built-in type in C Subtyping in Python Multiple inheritance MRO: Method resolution order (the lookup rule) XXX To be done open i...
PEP 635 -- Structural Pattern Matching: Motivation and Rationale PEP:635 Title:Structural Pattern Matching: Motivation and Rationale Author:Tobias Kohn <kohnt at tobiaskohn.ch>, Guido van Rossum <guido at python.org> BDFL-Delegate: Discussions-To:python-dev at python.org Status:Final Type:Informational Created:12-Sep-2020 Python-Version:3.10 Post-History:22-Oct-2020, 08-Feb-2021 Resolution:https://mail.python.org/archives/list/python-committers@python.org/message/SQC2...
PEP 654 -- Exception Groups and except* PEP:654 Title:Exception Groups and except* Author:Irit Katriel <iritkatriel at gmail.com>, Yury Selivanov <yury at edgedb.com>, Guido van Rossum <guido at python.org> Status:Accepted Type:Standards Track Created:22-Feb-2021 Post-History:22-Feb-2021, 20-Mar-2021 Contents Abstract Motivation Rationale Specification ExceptionGroup and BaseExceptionGroup Subclassing Exception Groups The Traceback of an Exception Group Handli...
PEP 418 -- Add monotonic time, performance counter, and process time functions PEP:418 Title:Add monotonic time, performance counter, and process time functions Author:Cameron Simpson <cs at cskk.id.au>, Jim Jewett <jimjjewett at gmail.com>, Stephen J. Turnbull <stephen at xemacs.org>, Victor Stinner <vstinner at python.org> Status:Final Type:Standards Track Created:26-Mar-2012 Python-Version:3.3 Contents Abstract Rationale Python functions New Functions...
Support the PSF with a Donation or by becoming a Supporting Member! Donate What does the Python Software Foundation do? The Python Software Foundation: Awards grants and provides resources for furthering the development and adoption of Python. Organizes and hosts the annual PyCon US conference. 2019 brought together 3,393 attendees from 55 countries, a new record for PyCon US! Our sponsors’ support enabled us to award $137,200 USD to ...