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.
...16-bit code points. Unicode string A Python type representing a sequence of code points with "string semantics" (e.g. case conversions, regular expression compatibility, etc.) Constructed with the unicode() function. Proposed Solution One solution would be to merely increase the maximum ordinal to a larger value. Unfortunately the only straightforward implementation of this idea is to use 4 bytes per character. This has the effect of doubling the size of most Unicode strings. In order to avoi...
PEP 611 -- The one million limit PEP:611 Title:The one million limit Author:Mark Shannon <mark at hotpy.org> Status:Withdrawn Type:Standards Track Created:05-Dec-2019 Post-History: Contents Abstract Motivation Is this a worthwhile trade off? Rationale One million Specification Recursion depth Soft and hard limits Introspecting and modifying the limits Inferred limits The advantages for CPython of imposing these limits: Line of code in a module and code object restri...
PEP 272 -- API for Block Encryption Algorithms v1.0 PEP:272 Title:API for Block Encryption Algorithms v1.0 Author:A.M. Kuchling <amk at amk.ca> Status:Final Type:Informational Created:18-Sep-2001 Post-History:17-Apr-2002, 29-May-2002 Contents Abstract Introduction Specification References Changes Acknowledgements Copyright Abstract This document specifies a standard API for secret-key block encryption algorithms such as DES or Rijndael, making it easier to switch betwe...
Python Patterns - An Optimization Anecdote Warning This page stays here for historical reasons and it may contain outdated or incorrect information. The other day, a friend asked me a seemingly simple question: what's the best way to convert a list of integers into a string, presuming that the integers are ASCII values. For instance, the list [97, 98, 99] should be converted to the string 'abc'. Let's assume we want to write a function to do this. The first version I came ...
...16-bit variable length encoding (little/big endian) 'utf-16-le': utf-16 but explicitly little endian 'utf-16-be': utf-16 but explicitly big endian 'ascii': 7-bit ASCII codepage 'iso-8859-1': ISO 8859-1 (Latin 1) codepage 'unicode-escape': See Unicode Constructors for a definition 'raw-unicode-escape': See Unicode Constructors for a definition 'native': Dump of the Internal Format used by Python Common aliases should also be provided per def...
IDLE and tkinter with Tcl/Tk on macOS Important If you are using macOS 12 Monterey or later, you may see problems with file open and save dialogs when using IDLE or other tkinter-based applications. The most recent versions of python.org installers (for 3.10.0 and 3.9.8) have patched versions of Tk to avoid these problems. They should be fixed in an upcoming Tk 8.6.12 release. If you are using a Python from any current python.org Python installer for macOS (3.10.0+ or 3.9.0+), no further acti...
PEP 456 -- Secure and interchangeable hash algorithm PEP:456 Title:Secure and interchangeable hash algorithm Author:Christian Heimes <christian at python.org> BDFL-Delegate:Nick Coghlan Status:Final Type:Standards Track Created:27-Sep-2013 Python-Version:3.4 Post-History:06-Oct-2013, 14-Nov-2013, 20-Nov-2013 Resolution:https://mail.python.org/pipermail/python-dev/2013-November/130400.html Contents Abstract Rationale Requirements for a hash function Current implementati...
PEP 247 -- API for Cryptographic Hash Functions PEP:247 Title:API for Cryptographic Hash Functions Author:A.M. Kuchling <amk at amk.ca> Status:Final Type:Informational Created:23-Mar-2001 Post-History:20-Sep-2001 Contents Abstract Specification Rationale Changes Acknowledgements Copyright Abstract There are several different modules available that implement cryptographic hashing algorithms such as MD5 or SHA. This document specifies a standard API for such algorithms,...
PEP 160 -- Python 1.6 Release Schedule PEP:160 Title:Python 1.6 Release Schedule Author:Fred L. Drake, Jr. <fred at fdrake.net> Status:Final Type:Informational Created:25-Jul-2000 Python-Version:1.6 Post-History: Contents Introduction Schedule Features Mechanism Copyright Introduction This PEP describes the Python 1.6 release schedule. The CVS revision history of this file contains the definitive historical record. This release will be produced by BeOpen PythonLabs s...
...16-bit, this form may use surrogate pairs (in which cast wstr_length differs form length). wstr_length differs from length only if there are surrogate pairs in the representation. utf8_length, utf8: UTF-8 representation (null-terminated). data: shortest-form representation of the unicode string. The string is null-terminated (in its respective representation). All three representations are optional, although the data form is considered the canonical representation which can be absent only while...
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...
PEP 452 -- API for Cryptographic Hash Functions v2.0 PEP:452 Title:API for Cryptographic Hash Functions v2.0 Author:A.M. Kuchling <amk at amk.ca>, Christian Heimes <christian at python.org> Status:Final Type:Informational Created:15-Aug-2013 Post-History: Replaces:247 Contents Abstract Specification Rationale Changes from Version 1.0 to Version 2.0 Recommended names for common hashing algorithms Changes Acknowledgements Copyright Abstract There are several diffe...
PEP 528 -- Change Windows console encoding to UTF-8 PEP:528 Title:Change Windows console encoding to UTF-8 Author:Steve Dower <steve.dower at python.org> Status:Final Type:Standards Track Created:27-Aug-2016 Python-Version:3.6 Post-History:01-Sep-2016, 04-Sep-2016 Resolution:https://mail.python.org/pipermail/python-dev/2016-September/146278.html Contents Abstract Specific Changes Add _io.WindowsConsoleIO Add _PyOS_WindowsConsoleReadline Add legacy mode Alternative App...
Python 2.0 Python 2.0 Note: This is no longer the most current Python release. See Python 2.0.1 for a patch release and the download page for more recent releases. The final version of Python 2.0 was released on October 16, 2000. Download What's new (overview) What's new (details) Post-release news For critical patches, a Python 2.0 specific FAQ, and other issues that have come up since the release, please go to the new Python 2.0 info area, a set of user-editabl...
Version: None
Released: Sept. 29, 2012
Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x. Major new features in the 3.3 release series are: PEP 380, syntax for delegating to a subgenerator (yield from) PEP 393, flexible string representation (doing away …
View Release Notes
...16-bit instructions of 8-bit opcode followed by 8-bit operand. Adaptive instructions Each instruction that would benefit from specialization is replaced by an adaptive version during quickening. For example, the LOAD_ATTR instruction would be replaced with LOAD_ATTR_ADAPTIVE. Each adaptive instruction maintains a counter, and periodically attempts to specialize itself. Specialization CPython bytecode contains many bytecodes that represent high-level operations, and would benefit from special...
Python 3.3.0 Release Python 3.3.x has reached end-of-life. Python 3.3.7, the final security-fix release, is available here. Python 3.3.0 was released on September 29th, 2012. Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x. Major new features in the 3.3 release series are: PEP 380, syntax for delegating to a subgenerator (yield from) PEP 393, flexible string representation (doing away with the distinction between "wide" ...
Python 3.3.1 Release Python 3.3.x has reached end-of-life. Python 3.3.7, the final security-fix release, is available here. Python 3.3.1 was released on April 7th, 2013. This is a 3.3 series bugfix release. It includes hundreds of bugfixes over 3.3.0. Major new features of the 3.3 series, compared to 3.2 Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x. PEP 380, syntax for delegating to a subgenerator (yield from) PEP 393, flexib...
Python 3.3.2 Release Python 3.3.x has reached end-of-life. Python 3.3.7, the final security-fix release, is available here. Python 3.3.2 was released on May 15th, 2013. This release fixes a few regressions found in Python 3.3.1. Major new features of the 3.3 series, compared to 3.2 Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x. PEP 380, syntax for delegating to a subgenerator (yield from) PEP 393, flexible string representation...
Python 3.3.3 Release Python 3.3.x has reached end-of-life. Python 3.3.7, the final security-fix release, is available here. Python 3.3.3 was released on November 17th, 2013. This release fixes several security issues and various other bugs found in Python 3.3.2. This release fully supports OS X 10.9 Mavericks. In particular, this release fixes an issue that could cause previous versions of Python to crash when typing in interactive mode on OS X 10.9. Major new features of the 3.3 series, c...