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: April 4, 2023
This is an early developer preview of Python 3.12. Major new features of the 3.12 series, compared to 3.11 Python 3.12 is still in development. This release, 3.12.0a7 is the seventh and final alpha release of 3.12. Alpha releases are intended to make it easier to test the current …
Released: April 5, 2023
This is the eleventh maintenance release of Python 3.10 Python 3.10.10 is the newest major release of the Python programming language, and it contains many new features and optimizations. Major new features of the 3.10 series, compared to 3.9 Among the new major new features and changes so far: PEP …
View Release Notes
...sum() - a new function to sum a sequence of numbers. "sum(seq, start)" is faster and easier to understand than "reduce(operator.add, seq, start)". (New in 2.3b1.) enumerate() - an iterator taking a sequence returning tuples of (index, item). This solves the old "for i in range(len(seq))" problem more elegantly. (PEP 279) basestring - an abstract string type which is the base class for str (8-bit strings) and unicode. Primarily used to simplify tests for string-n...
...sumes that this is a one-horse distribution named after its sole module (mymod). Those who enjoy defining subclasses might prefer to phrase this differently: from distutils.core import Distribution, setup class MyDistribution (Distribution): name = "mymod" version = "1.2", author = "Greg Ward <gward@cnri.reston.va.us>", description = "A very simple, one-module distribution") setup (distclass = MyDistribution) Thi...
...sum of the lists [C] + [C1, C2, ... ,CN]. Now I can explain how the MRO works in Python 2.3. Consider a class C in a multiple inheritance hierarchy, with C inheriting from the base classes B1, B2, ... , BN. We want to compute the linearization L[C] of the class C. The rule is the following: the linearization of C is the sum of C plus the merge of the linearizations of the parents and the list of the parents. In symbolic notation: L[C(B1 ... BN)] = C + merge(L[B1] ... L[BN], B1 ... BN) In par...
...Summary Two posts were made this month on a year-end summary and on the event calendars Issues / Blockages None Continued Activities from Last Month None New Activities Jessica McKellar wrote a post about supporting the PSF, with some details about how the money is used, and how to donate: http://pyfound.blogspot.com/2014/01/support-python-software-foundation-in.html Marc-André Lemburg wrote a post on the events and user group calendars: http://pyfound.blogspot.com/2014/01/p...
...sumed that initial existing entries in an object's weakref list would not be removed while allocating a new weakref object. Since GC could be invoked at that time, however, that assumption was invalid. In a truly obscure case of GC being triggered during creation for a new weakref object for an referent which already has a weakref without a callback which is only referenced from cyclic trash, a memory error can occur. This consistently created a segfault in a debug build, but provided less pr...
If you didn't find what you need, try your search in the Python language documentation.