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 219 -- Stackless Python PEP:219 Title:Stackless Python Author:gmcm at hypernet.com (Gordon McMillan) Status:Deferred Type:Standards Track Created:14-Aug-2000 Python-Version:2.1 Post-History: Contents Introduction Background Discussion Problems Advantages References Introduction This PEP discusses changes required to core Python in order to efficiently support generators, microthreads and coroutines. It is related to PEP 220, which describes how Python should be extended...
...algorithmic rules for floating point arithmetic. Included in the standard is a set of constants for representing special values, including positive infinity, negative infinity, and indeterminate or non-numeric results (NaN). Most modern CPUs implement the IEEE 754 standard, including the (Ultra)SPARC, PowerPC, and x86 processor series. Currently, the handling of IEEE 754 special values in Python depends on the underlying C library. Unfortunately, there is little consistency between C librarie...
PEP 255 -- Simple Generators PEP:255 Title:Simple Generators Author:nas at arctrix.com (Neil Schemenauer), tim.peters at gmail.com (Tim Peters), magnus at hetland.org (Magnus Lie Hetland) Discussions-To:python-iterators at lists.sourceforge.net Status:Final Type:Standards Track Requires:234 Created:18-May-2001 Python-Version:2.2 Post-History:14-Jun-2001, 23-Jun-2001 Contents Abstract Motivation Specification: Yield Specification: Return Specification: Generators and Excep...
PEP 458 -- Secure PyPI downloads with signed repository metadata PEP:458 Title:Secure PyPI downloads with signed repository metadata Author:Trishank Karthik Kuppusamy <karthik at trishank.com>, Vladimir Diaz <vladimir.diaz at nyu.edu>, Marina Moore <mm9693 at nyu.edu>, Lukas Puehringer <lukas.puehringer at nyu.edu>, Joshua Lock <jlock at vmware.com>, Lois Anne DeLong <lad278 at nyu.edu>, Justin Cappos <jcappos at nyu.edu> Sponsor...
PEP 485 -- A Function for testing approximate equality PEP:485 Title:A Function for testing approximate equality Author:Christopher Barker <Chris.Barker at noaa.gov> Status:Final Type:Standards Track Created:20-Jan-2015 Python-Version:3.5 Post-History: Resolution:https://mail.python.org/pipermail/python-dev/2015-February/138598.html Contents Abstract Rationale Existing Implementations Proposed Implementation Handling of non-finite numbers Non-float types Behavior near...
Python Success Stories Introduction Wing IDE is a commercial integrated development environment for the Python programming language. Wing provides developers with a full-featured source editor, debugger, code browser, and many other tools specifically designed for use with Python. Wing works with all forms of Python, whether running as a stand-alone app, under a web server, or in a custom embedded scripting environment. Several GUI layers (wxPython, PyQt, PyGTK, and Tkinter) are supported, as...
...efficiency (when m is idempotent), at worst an error. Classic Python has the same problem, except it doesn't even consider it an error to inherit two conflicting definitions of a method: it simply picks the first one. The traditional solution to this dilemma is to split each derived definition of m into two parts: a partial implementation _m, which only saves the data that is unique to one class, and a full implementation m, which calls its own _m and that of the base class(es). For e...
PEP 327 -- Decimal Data Type PEP:327 Title:Decimal Data Type Author:Facundo Batista <facundo at taniquetil.com.ar> Status:Final Type:Standards Track Created:17-Oct-2003 Python-Version:2.4 Post-History:30-Nov-2003, 02-Jan-2004, 29-Jan-2004 Contents Abstract Motivation The problem with binary float Why floating point? Why not rational? So, what do we have? General Decimal Arithmetic Specification The Arithmetic Model Numbers Context Default Contexts Exceptional Condition...
EDU-SIG: Python in Education EDU-SIG: Python in Education More and more, Python is making inroads at all levels in education. Python offers an interactive environment in which to explore procedural, functional and object oriented approaches to problem solving. Its high level data structures and clear syntax make it an ideal first language, while the large number of existing libraries make it suitable to tackle almost any programming tasks. Edu-sig, through its mailing list, provides an infor...
PEP 3118 -- Revising the buffer protocol PEP:3118 Title:Revising the buffer protocol Author:Travis Oliphant <oliphant at ee.byu.edu>, Carl Banks <pythondev at aerojockey.com> Status:Final Type:Standards Track Created:28-Aug-2006 Python-Version:3.0 Post-History: Contents Abstract Rationale Proposal Overview Specification Access flags The Py_buffer struct Releasing the buffer New C-API calls are proposed Additions to the struct string-syntax Examples of Data-Format...
PEP 100 -- Python Unicode Integration PEP:100 Title:Python Unicode Integration Author:mal at lemburg.com (Marc-André Lemburg) Status:Final Type:Standards Track Created:10-Mar-2000 Python-Version:2.0 Post-History: Contents Historical Note Introduction Conventions General Remarks Unicode Default Encoding Unicode Constructors Unicode Type Object Unicode Output Unicode Ordinals Comparison & Hash Value Coercion Exceptions Codecs (Coder/Decoders) Lookup Standard Codecs Codecs In...
PEP 3119 -- Introducing Abstract Base Classes PEP:3119 Title:Introducing Abstract Base Classes Author:Guido van Rossum <guido at python.org>, Talin <viridia at gmail.com> Status:Final Type:Standards Track Created:18-Apr-2007 Post-History:26-Apr-2007, 11-May-2007 Contents Abstract Acknowledgements Rationale Specification Overloading isinstance() and issubclass() The abc Module: an ABC Support Framework ABCs for Containers and Iterators One Trick Ponies Sets Mapping...
Notes (editors: check NEWS.help for information about editing NEWS using ReST.) What's New in Python 2.4 final? Release date: 30-NOV-2004 Core and builtins Bug 875692: Improve signal handling, especially when using threads, by forcing an early re-execution of PyEval_EvalFrame() "periodic" code when things_to_do is not cleared by Py_MakePendingCalls(). What's New in Python 2.4 (release candidate 1) Release date: 18-NOV-2004 Core and builtins Bug 1061968: Fixes in 2.4a3 to ad...
...efficiency, calling IStack(s) where s is an instance of Stack, may return s rather than an IStack adapter. (Note that calling IStack(x) where x is already an IStack adapter will always return x unchanged; this is an additional optimization allowed in cases where the adaptee is known to directly implement the interface, without adaptation.) For convenience, it may be useful to declare implementations in the class header, e.g.: class Stack(metaclass=Implementer, implements=IStack): ... Inst...
PEP 3128 -- BList: A Faster List-like Type PEP:3128 Title:BList: A Faster List-like Type Author:Daniel Stutzbach <daniel at stutzbachenterprises.com> Discussions-To:python-3000 at python.org Status:Rejected Type:Standards Track Created:30-Apr-2007 Python-Version:2.6, 3.0 Post-History:30-Apr-2007 Contents Rejection Notice Abstract Motivation Use Case Trade-offs Implementation Memory Usage Backwards Compatibility Reference Implementation Porting to Other Python Variants ...
PEP 3101 -- Advanced String Formatting PEP:3101 Title:Advanced String Formatting Author:Talin <viridia at gmail.com> Status:Final Type:Standards Track Created:16-Apr-2006 Python-Version:3.0 Post-History:28-Apr-2006, 06-May-2006, 10-Jun-2007, 14-Aug-2007, 14-Sep-2008 Contents Abstract Rationale Specification String Methods Format Strings Simple and Compound Field Names Format Specifiers Standard Format Specifiers Explicit Conversion Flag Controlling Formatting on a Per-Ty...
PEP 617 -- New PEG parser for CPython PEP:617 Title:New PEG parser for CPython Author:Guido van Rossum <guido at python.org>, Pablo Galindo <pablogsal at python.org>, Lysandros Nikolaou <lisandrosnik at gmail.com> Discussions-To:python-dev at python.org Status:Accepted Type:Standards Track Created:24-Mar-2020 Python-Version:3.9 Post-History:02-Apr-2020 Contents Overview Background on LL(1) parsers Background on PEG parsers Rationale Some rules are not actual...
Parade of the PEPs Parade of the PEPs To start off Developer's Day at the Python10 conference I gave a keynote ending in what I dubbed "the parade of the PEPs". It was a brief overview of all open PEPs, where I gave my highly personal and subjective opinion for each PEP. Later, I realized that this might have been of interest to other developers. I didn't take notes at the conference, so below is a different set of comments that I created from scratch during a single two-hour sitt...
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...