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.
...ASCII alphabet, ASCII numbers, ., -, and _. The name should be lowercased with all runs of the characters ., -, or _ replaced with a single - character. This can be implemented in Python with the re module: import re def normalize(name): return re.sub(r"[-_.]+", "-", name).lower() Changes The optional data-requires-python attribute was added in July 2016. Copyright This document has been placed in the public domain. Source: https://github.com/python/peps/blob/master/pep-0503.txt
...ASCII are not supported by this specification; bytes in the ASCII range that fail to decode will cause an exception. It is widely agreed that such encodings should not be used as locale charsets. For most applications, we assume that they eventually pass data received from a system interface back into the same system interfaces. For example, an application invoking os.listdir() will likely pass the result strings back into APIs like os.stat() or open(), which then encodes them back into their or...
...ASCII representing the hexadecimal representation of the digest (for byte in digest: s = s + ('%02x' % ord(byte))). pkginfo (optional) -- The file containing the distribution meta-data (as specified in PEP 241). Note that if this is not included, the distribution file is expected to be in .tar format (gzipped and bzipped compressed are allowed) or .zip format, with a PKG-INFO file in the top-level directory it extracts (package-1.00/PKG-INFO). infomd5sum (required if pkginfo field is present) -...
...ASCII-only representation of an object use ascii(). Issue #1342: On windows, Python could not start when installed in a directory with non-ascii characters. Implement PEP 3121: new module initialization and finalization API. Removed the already-defunct -t option. Issue #2957: Corrected a ValueError "recursion limit exceeded", when unmarshalling many code objects, which happens when importing a large .pyc file (~1000 functions). Issue #2963: fix merging oversight that disabled method ca...
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 ...
...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 bytes and unicode strings is provided. The closest the langu...
Version: None
Released: Dec. 11, 2018
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 …
View Release Notes
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 …
...ASCII or UTF-8). You can use ReST formatting to enhance the formatting. Please use a ReST capable editor such as the Online ReSt editor for checking your formatting. Postings failing to format correctly will get rejected. Please watch out for common formatting mistakes: Requirements: * first item * second item should be written as (note the added blank line): Requirements: * first item * second item Bullets and paragraphs should always start in the first column: * correct * not correct ...
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 …
Released: Oct. 13, 2018
Python 3.7.1rc2 is the second 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 …
Released: Oct. 20, 2018
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 …
Released: March 25, 2019
Released: June 18, 2019
Python 3.7.4rc1 is the release candidate preview of the fourth 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. Note that 3.7.4rc1 is a release preview and thus its use is not recommended for …
Released: July 8, 2019
Released: Oct. 2, 2019
Python 3.7.5rc1 is the release candidate preview of the fifth maintenance release of Python 3.7. The Python 3.7 series is the latest major release of the Python language and contains many new features and optimizations. Note that 3.7.5rc1 is a release preview and thus its use is not recommended for …
Released: Oct. 15, 2019
Released: Dec. 18, 2019
...ASCII characters sparingly, preferably only to denote places and human names. If using non-ASCII characters as data, avoid noisy Unicode characters like z̯̯͡a̧͎̺l̡͓̫g̹̲o̡̼̘ and byte order marks. All identifiers in the Python standard library MUST use ASCII-only identifiers, and SHOULD use English words wherever feasible (in many cases, abbreviations and technical terms are used which aren't English). Open source projects with a global audience are encouraged to adopt a similar policy. Imports ...