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: Dec. 10, 2014
Python 2.7.9 is a bugfix version for the Python 2.7 release series. Python 2.7.9 includes several significant changes unprecedented in a "bugfix" release: The entirety of Python 3.4's ssl module has been backported for Python 2.7.9. See PEP 466 for justification. HTTPS certificate validation using the system's certificate store is …
View Release Notes
...reversed() - a new builtin that takes a sequence and returns an iterator that loops over the elements of the sequence in reverse order (PEP 322) new sort() keyword arguments - sort() now accepts keyword arguments cmp, key and reverse sorted() - a new builtin sorted() acts like an in-place list.sort() but can be used in expressions, as it returns a copy of the sequence, sorted. string methods - strings gained an rsplit() method, and the string methods ljust(), rjust() and center() accept an argu...
Released: Feb. 6, 2024
This is the eighth maintenance release of Python 3.11 Python 3.11.8 is the newest major release of the Python programming language, and it contains many new features and optimizations. Major new features of the 3.11 series, compared to 3.10 Some of the new major new features and changes in Python …
Released: Sept. 12, 2022
This is the second release candidate of Python 3.11 This release, 3.11.0rc2, is the last preview before the final release of Python 3.11.0 on 2022-10-24. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. …
Released: Dec. 23, 2008
This is the last bugfix release of Python 2.5. Future releases of Python 2.5 will only contain security patches; no new features are being added, and no "regular" bugs will be fixed anymore. According …
Python 2.5.4 Release Python 2.5.4 We are pleased to announce the release of Python 2.5.4 (final), a bugfix release of Python 2.5, on December 23rd, 2008. Python 2.5.4 has been replaced by a newer bugfix release of Python. Please download Python 2.5.6 instead, unless you need to use the Windows and OS X binaries provided here. This is the last bugfix release of Python 2.5. Future releases of Python 2.5 will only contain security patches; no new features are being added, and no "regular&...
...reverse.py ... Filters/ Subpackage for filters __init__.py equalizer.py vocoder.py karaoke.py dolby.py ... Users of the package can import individual modules from the package, for example: import Sound.Effects.echo This loads the submodule Sound.Effects.echo. It must be referenced with its full name, e.g. Sound.Effects.echo.echofilter(input, output, delay=0.7, atten=4) from Sound.Effe...
...reversed() builtin function that returns a reverse iterator over a sequence. Added a sorted() builtin function that returns a new sorted list from any iterable. CObjects are now mutable (on the C level) through PyCObject_SetVoidPtr. list.sort() now supports three keyword arguments: cmp, key, and reverse. The key argument can be a function of one argument that extracts a comparison key from the original record: mylist.sort(key=str.lower). The reverse argument is a boolean value and if True will...
...reverse operation? I.e. create a list of integer ASCII values from a string. Oh no, here we go again, it flashed through my mind... But this time, it was relatively painless. There are two candidates, the obvious: def g1(string): return map(ord, string) and the somewhat less obvious: import array def g2(string): return array.array('b', string).tolist() Timing these reveals that g2() is about five times as fast as g1(). There's a catch ...
...reverses a string. None - assignment to variables or attributes named None will now trigger a warning. In the future, None may become a keyword. New-style classes now allow assignment to __name__ and __bases__. Interned strings are no longer immortal. sys.setcheckinterval() - the default value for this feature has changed from 10 to 100, for faster execution of interleaving multiple threads (by switching threads less frequently). Universal newlines - files opened for reading with the special mo...
...reverse', 'sort'] >>> >>> dir([]) ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] Under the new proposal, the __methods__ attribute no longer exists: Python 2.2c1 (#803, Dec 13 2001, 23:06:05) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information. >>> [].__methods__ Traceback (most recent call last): File "<stdin>", line 1...
...reverse', 'sort'] >>> >>> dir([]) ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] Under the new proposal, the __methods__ attribute no longer exists: Python 2.2c1 (#803, Dec 13 2001, 23:06:05) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information. >>> [].__methods__ Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'list' object ha...
...reversed this process. Not that it took me very long to learn the feature set. I wrote a working, usable fetchmailconf, with GUI, in six working days, of which perhaps the equivalent of two days were spent learning Python itself. This reflects another useful property of the language: it is compact -- you can hold its entire feature set (and at least a concept index of its libraries) in your head. C is a famously compact language. Perl is notoriously not; one of the things the notion "There'...
...reversed=<bool>" optional argument seems utterly application-specific. I would like to reject this because it doesn't solve a general enough problem in a general enough way, it just clutters the dictionary API. I'd rather add dict.popitem(key). PEP 266 - Optimizing Global Variable/Attribute Access Montanaro PEP 267 - Optimized Access to Module Namespaces - Hylton PEP 280 - Optimizing access to globals - van Rossum These three should be considered together; at most one of them...
...reversed iterator now supports __length_hint__ instead of __len__. Behavior now matches other reversed iterators. Issue #4367: Python would segfault during compiling when the unicodedata module couldn't be imported and N escapes were present. Fix build failure of _cursesmodule.c building with -D_FORTIFY_SOURCE=2. Library Issue #4387: binascii now refuses to accept str as binary input. Issue #4073: Add 2to3 support to build_scripts, refactor that support in build_py. IDLE would print a "...
...reverse chronological order): 2002-04-13 lpd Removed support for non-ANSI compilers; removed references to Ghostscript; clarified derivation from RFC 1321; now handles byte order either statically or dynamically. 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5); added conditionalization for C++ compilation from Martin Purschke <purschke@bnl.gov>. 1999-05-03 lpd Orig...
If you didn't find what you need, try your search in the Python language documentation.