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 3120 -- Using UTF-8 as the default source encoding PEP:3120 Title:Using UTF-8 as the default source encoding Author:Martin von Löwis <martin at v.loewis.de> Status:Final Type:Standards Track Created:15-Apr-2007 Python-Version:3.0 Post-History: Contents Specification A Bit of History Rationale Implementation Copyright Specification This PEP proposes to change the default source encoding from ASCII to UTF-8. Support for alternative source encodings (PEP 263) continu...
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 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...
PEP 393 -- Flexible String Representation PEP:393 Title:Flexible String Representation Author:Martin v. Löwis <martin at v.loewis.de> Status:Final Type:Standards Track Created:24-Jan-2010 Python-Version:3.3 Post-History: Contents Abstract Rationale Specification String Creation String Access New API Stable ABI GDB Debugging Hooks Deprecations, Removals, and Incompatibilities Discussion Performance Porting Guidelines References Copyright Abstract The Unicode string...
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...
...8-bit strings using the favorite encoding, but are bound to the "unicode-escape" encoding for Unicode literals. Proposed Solution I propose to make the Python source code encoding both visible and changeable on a per-source file basis by using a special comment at the top of the file to declare the encoding. To make Python aware of this encoding declaration a number of concept changes are necessary with respect to the handling of Python source code data. Defining the Encoding Python will def...
Version: None
Released: June 11, 2018
This is the release candidate of Python 3.7.0 This release, 3.7.0rc1, is the final planned release preview. Assuming no critical problems are found prior to 2018-06-27, the scheduled release date for 3.7.0, no code changes are planned between this release candidate and the final release. Among the major …
View Release Notes
PEP 3127 -- Integer Literal Support and Syntax PEP:3127 Title:Integer Literal Support and Syntax Author:Patrick Maupin <pmaupin at gmail.com> Discussions-To:python-3000 at python.org Status:Final Type:Standards Track Created:14-Mar-2007 Python-Version:3.0 Post-History:18-Mar-2007 Contents Abstract Motivation Specification Grammar specification int() specification long() specification Tokenizer exception handling int() exception handling oct() function Output formatting ...
...8-bit non-raw string, \xij expands to the character chr(int(ij, 16)) Note that this is the same as in 1.6 and before. In a Unicode string, \xij acts the same as \u00ij i.e. it expands to the obvious Latin-1 character from the initial segment of the Unicode space. An \x not followed by at least two hex digits is a compile-time error, specifically ValueError in 8-bit strings, and UnicodeError (a subclass of ValueError) in Unicode strings. Note that if an \x is followed by more than two he...
Released: Dec. 11, 2018
Python 3.6.8rc1 is a release candidate preview of the eighth and last maintenance release of Python 3.6. The Python 3.6 series contains many new features and optimizations. Note Python 3.7 is now released and is the latest feature release of Python 3. Get the latest release of 3.7.x here. …
Released: Dec. 24, 2018
Note: The release you are looking at is Python 3.6.8, the final bugfix release for the legacy 3.6 series which has now reached end-of-life and is no longer supported. See the downloads page for currently supported versions of Python. The final source-only security fix release for 3.6 was 3.6.15 …
Released: May 30, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b5, is now the final planned beta release preview. Originally, 3.7.0b4 was intended to be the final beta but, due to some unexpected compatibility issues discovered during beta testing of third-party packages, we …
Released: June 17, 2020
Note Note: The release you are looking at is a bugfix release preview for the legacy 3.7 series which has now reached end-of-life and is no longer supported. See the downloads page for currently supported versions of Python. The final source-only security fix release for 3.7 was 3.7.17. Note …
...8-bit strings from containing non-ASCII characters. Con: Codecs and other Unicode-consuming code will have to be careful of these characters which are disallowed by the Unicode specification. ord() is always the inverse of unichr() There is an integer value in the sys module that describes the largest ordinal for a character in a Unicode string on the current interpreter. sys.maxunicode is 2**16-1 (0xffff) on narrow builds of Python and TOPCHAR on wide builds. ISSUE: Should there be distin...
...8-bit data. The object is not altered in any way by this function; you can continue updating the object after calling this function. hexdigest() Return the hash value of this hashing object as a string containing hexadecimal digits. Lowercase letters should be used for the digits a through f. Like the .digest() method, this method mustn't alter the object. update(string) Hash string into the current state of the hashing object. update() can be called any number of times during a hashing...
...8-bit data only. Both 'key' and 'string' must be a bytes-like object (bytes, bytearray...). A hashing object may support one-dimensional, contiguous buffers as argument, too. Text (unicode) is no longer supported in Python 3.x. Python 2.x implementations may take ASCII-only unicode as argument, but portable code should not rely on the feature. Arbitrary additional keyword arguments can be added to this function, but if they're not supplied, sensible default values should be used. For example, '...
Python 3.7.2rc1 is the release candidate preview of the second maintenance release of Python 3.7. The Python 3.7 series is the newest major release of the Python language and contains many new features and optimizations. Among the major new features in Python 3.7 are: PEP 539, new C API …
Released: March 12, 2019
Python 3.7.3rc1 is the release candidate preview of the third maintenance release of Python 3.7. The Python 3.7 series is the newest major release of the Python language and contains many new features and optimizations. Among the major new features in Python 3.7 are: PEP 539, new C API …
Released: June 27, 2018
Note: The release you are looking at is Python 3.7.0, the initial feature release for the legacy 3.7 series which has now reached end-of-life and is no longer supported. See the downloads page for currently supported versions of Python. The final source-only security fix release for 3.7 was 3.7.17 …
Released: Sept. 26, 2018
Python 3.7.1rc1 is a release candidate preview of the first maintenance release of Python 3.7. The Python 3.7 series is the newest major release of the Python language and contains many new features and optimizations. Among the major new features in Python 3.7 are: PEP 539, new C API …