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.
Version: None
Released: Oct. 15, 2019
Note: The release you are looking at is a bugfix 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. Among the major …
View Release Notes
Released: Dec. 18, 2019
...8-bit strings. Preserving the old 8-bit meaning of a string literal is usually as simple as adding a b prefix. The one exception is Python 2.x strings containing bytes >127, which must be rewritten using escape sequences. Transcoding a source file from one encoding to another, and fixing up the encoding declaration, should preserve the meaning of the program. Python 2.x non-Unicode strings violate this principle; Python 3000 bytes literals shouldn't. A string literal with a b in the prefix ...
PEP 3132 -- Extended Iterable Unpacking PEP:3132 Title:Extended Iterable Unpacking Author:Georg Brandl <georg at python.org> Status:Final Type:Standards Track Created:30-Apr-2007 Python-Version:3.0 Post-History: Contents Abstract Rationale Specification Implementation Grammar change Changes to the Compiler Changes to the Bytecode Interpreter Acceptance References Copyright Abstract This PEP proposes a change to iterable unpacking syntax, allowing to specify a "catch...
...8-bit strings passed to it for coercion and about the encoding to as default for conversion of Unicode to strings when no specific encoding is given. This encoding is called <default encoding> throughout this text. For this, the implementation maintains a global which can be set in the site.py Python startup script. Subsequent changes are not possible. The <default encoding> can be set and queried using the two sys module APIs: sys.setdefaultencoding(encoding) Sets the <defaul...
Released: Dec. 11, 2019
Note Python 3.8 is now the latest feature release series of Python 3. Get the latest release of 3.8.x here. We plan to continue to provide bugfix releases for 3.7.x until mid 2020 and security fixes until mid 2023. Python 3.7.6rc1 is the release candidate preview of the sixth …
PEP 296 -- Adding a bytes Object Type PEP:296 Title:Adding a bytes Object Type Author:xscottg at yahoo.com (Scott Gilbert) Status:Withdrawn Type:Standards Track Created:12-Jul-2002 Python-Version:2.3 Post-History: Contents Notice Abstract Rationale Specification Contrast to existing types Backward Compatibility Reference Implementation Additional Notes/Comments References Copyright Notice This PEP is withdrawn by the author (in favor of PEP 358). Abstract This PEP propose...
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...
...8-bit strings or \u0024 in Unicode strings). If there are no '$' characters present, the string is returned unchanged. Any '$' found in the string, followed by one of the two kinds of expressions described below, is replaced with the value of the expression as evaluated in the current namespaces. The value is converted with str() if the containing string is an 8-bit string, or with unicode() if it is a Unicode string. A Python identifier optionally followed by any number of trailers, where a ...
...8-bit strings, and they play a dual role in Python 2 as both ASCII text and as byte sequences. While Python 2 also has a unicode string type, the fundamental ambiguity of the core string type, coupled with Python 2's default behavior of supporting automatic coercion from 8-bit strings to unicode objects when the two are combined, often leads to UnicodeErrors. Python 3's standard string type is Unicode based, and Python 3 adds a dedicated bytes type, but critically, no automatic coercion between...
PEP 357 -- Allowing Any Object to be Used for Slicing PEP:357 Title:Allowing Any Object to be Used for Slicing Author:Travis Oliphant <oliphant at ee.byu.edu> Status:Final Type:Standards Track Created:09-Feb-2006 Python-Version:2.5 Post-History: Contents Abstract Rationale Proposal Specification Implementation Plan Discussion Questions Speed Why not use nb_int which is already there? Why the name __index__? Why return PyObject * from nb_index? Why can't __index__ return ...
...8-bit strings to ASCII using following algorithm. Convert CR, LF, TAB and '\' to '\r', '\n', '\t', '\\'. Convert other non-printable characters(0x00-0x1f, 0x7f) and non-ASCII characters (>= 0x80) to '\xXX'. Backslash-escape quote characters (apostrophe, ') and add the quote character at the beginning and the end. For Unicode strings, the following additional conversions are done. Convert leading surrogate pair characters without trailing character (0xd800-0xdbff, but not followed by 0xdc00...
Released: Jan. 31, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b1, is the first of four planned beta release previews. Among the major new features in Python 3.7 are: PEP 538, Coercing the legacy C locale to a UTF-8 based locale PEP 539 …
Released: Feb. 28, 2018
This is a beta preview of Python 3.7 Python 3.7 is still in development. This release, 3.7.0b2, is the second of four planned beta release previews. Among the major new features in Python 3.7 are: PEP 538, Coercing the legacy C locale to a UTF-8 based locale PEP 539 …
...8-bit encoded string with no embedded nulls, the _PyOS_WindowsConsoleReadline function transcodes from utf-16-le as read from the operating system into utf-8. The function PyRun_InteractiveOneObject which currently obtains the encoding from sys.stdin will select utf-8 unless the legacy-mode flag is in effect. This may require readline hooks to change their encodings to utf-8, or to require legacy-mode for correct behaviour. Add legacy mode Launching Python with the environment variable PYTHONL...
PEP 754 -- IEEE 754 Floating Point Special Values PEP:754 Title:IEEE 754 Floating Point Special Values Author:Gregory R. Warnes <gregory_r_warnes at groton.pfizer.com> (Pfizer, Inc.) Status:Rejected Type:Standards Track Created:28-Mar-2003 Python-Version:2.3 Post-History: Contents Rejection Notice Abstract Rationale API Definition Constants Functions Example Implementation References Copyright Rejection Notice This PEP has been rejected. After sitting open for four ...
...8-bit strings and Unicode strings. It must pass the regression test used for the pcre-based version of the re module. The curses module was in the middle of a transformation to a package, so the final form was adopted. Mechanism The release will be created as a branch from the development tree rooted at CNRI's close of business on 16 May 2000. Patches required from more recent checkins will be merged in by moving the branch tag on individual files whenever possible in order to reduce mailing...
PEP 683 -- Immortal Objects, Using a Fixed Refcount PEP:683 Title:Immortal Objects, Using a Fixed Refcount Author:Eric Snow <ericsnowcurrently at gmail.com>, Eddie Elizondo <eduardo.elizondorueda at gmail.com> Discussions-To:https://mail.python.org/archives/list/python-dev@python.org/thread/TPLEYDCXFQ4AMTW6F6OQFINSIFYBRFCR/ Status:Draft Type:Standards Track Created:10-Feb-2022 Python-Version:3.11 Post-History:15-Feb-2022, 19-Feb-2022, 28-Feb-2022 Resolution: Conte...
2011-07-18 PSF Board Meeting Minutes .. declare custom role for action items: .. role:: action .. class:: minutes-title | The Python Software Foundation | Minutes of a Regular Meeting of the Board of Directors | | July 18, 2011 A regular meeting of the Python Software Foundation ("PSF") Board of Directors was held over Internet Relay Chat beginning at 16:00 UTC, 18 July 2011. Steve Holden presided at the meeting. Pat Campbell prepared the minutes. All votes are reported in the form "*Y-N...
PEP 397 -- Python launcher for Windows PEP:397 Title:Python launcher for Windows Version:a57419aee37d Last-Modified:2012/06/19 15:13:49 Author:Mark Hammond <mhammond at skippinet.com.au>, Martin v. Löwis <martin at v.loewis.de> Status:Final Type:Standards Track Created:15-Mar-2011 Post-History:21-Jul-2011, 17-May-2011, 15-Mar-2011 Resolution:https://mail.python.org/pipermail/python-dev/2012-June/120505.html Contents Abstract Rationale Specification Installation P...