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.
...function-signature object The new "faulthandler" module that helps diagnosing crashes The new "unittest.mock" module The new "ipaddress" module The "sys.implementation" attribute A policy framework for the email package, with a provisional (see PEP 411) policy that adds much improved unicode support for email header parsing A "collections.ChainMap" class for linking mappings to a single unit Wrappers for many more POSIX functions in the "os&...
Version: None
Released: Aug. 1, 2024
This is the first release candidate of Python 3.13.0 This release, 3.13.0rc1, is the penultimate release preview. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate (and the last planned release …
View Release Notes
Released: Sept. 6, 2024
This is the second release candidate of Python 3.13.0 This release, 3.13.0rc2, is the final release preview. This release is expected to become the final 3.13.0 release, barring any critical bugs being discovered. The official release of 3.13.0 is scheduled for Tuesday, 2024-10-01. There will be no ABI changes …
Released: Oct. 1, 2024
This is the third release candidate of Python 3.13.0 This release, 3.13.0rc3, is the final release preview (no really) of 3.13. This release is expected to become the final 3.13.0 release, barring any critical bugs being discovered. The official release of 3.13.0 is now scheduled for Monday, 2024-10-07. This …
...Function objects now have a __module__ attribute that is bound to the name of the module in which the function was defined. This applies for C functions and methods as well as functions and methods defined in Python. This attribute is used by pickle.whichmodule(), which changes the behavior of whichmodule slightly. In Python 2.2 whichmodule() returns "__main__" for functions that are not defined at the top-level of a module (examples: methods, nested functions). Now whichmodule() wi...
...functions, attrgetter() and itemgetter() which are useful for creating fast data extractor functions for map(), list.sort(), itertools.groupby(), and other functions that expect a function argument. socket.SHUT_{RD,WR,RDWR} was added. os.getsid was added. The pwd module incorrectly advertised its struct type as struct_pwent; this has been renamed to struct_passwd. (The old name is still supported for backwards compatibility.) The xml.parsers.expat module now provides Expat 1.95.7. socket.IPPROT...
...functionality. Test-Driven Development Dynamic languages like Python complement automated testing, by allowing the patching of modules, classes, methods or attributes with arbitrary objects at runtime. This allows tests to easily eliminate dependencies of the code under test, and thus concentrating on testing one thing at at time. Additionally, it makes it easy to stimulate particular behaviours or failure modes during the test. For example, by patching the file 'open' function with another fu...
...maps between attributes or methods of objects and relational columns, tables, and databases. This mapping is not intended to store actual object attributes into relational tables, but rather only those attributes relevant to facilitating fast queries. In this way, the relational database is used as an index into the Zope object database. To provide support for fast queries of the object database, ZSQLCatalog copies select attributes (dots) and relations (lines) from the object database into t...
...function is new. For bit-for-bit compatibility with prior releases, use the whseed function instead. The new seed function addresses two problems: (1) The old function couldn't produce more than about 2**24 distinct internal states; the new one about 2**45 (the best that can be done in the Wichmann-Hill generator). (2) The old function sometimes produced identical internal states when passed distinct integers, and there was no simple way to predict when that would happen; the new one guarant...
...function getfqdn() readline - new functions to read, write and truncate history files. The readline section of the library reference manual contains an example. select - add interface to poll system call shutil - new copyfileobj function SimpleHTTPServer, CGIHTTPServer - Fix problems with buffering in the HTTP server. Tkinter - optimization of function flatten urllib - scans environment variables for proxy configuration, e.g. http_proxy. whichdb - recognizes dumbdbm form...
...function argument in a special kind of descriptor whose __get__() method returns the original function unchanged. More on __get__ methods: in Python 2.2, the magic of binding methods to instances (even for classic classes!) is done through the __get__ method of the object found in the class. The __get__ method for regular function objects returns a bound method object; the __get__ method for staticfunction objects returns the underlying function. If a class attribute has no __get__ m...
...mapped to a Python class, which provided the public methods to call from the client application. There were two reason that we felt that service implementations should look no different than any standard class implementation in Python for two reasons: (1) a programmer should not need to learn a new way of coding just to be able to write services, and (2) existing integrated development environments (IDEs) should be used to make coding services even easier. Since Python is an object-oriented prog...
...mapping names of C source files (each containing a Python extension module) to a nested hash of information about how to build that module. The allowed keys to this nested hash are: - other_c: other C files that must be compiled and linked with the main C file to create the module - c_libraries: C libraries that must be included in the link ... """ No doubt the ext_modules nested hashes would have more options, and no...
...mapping_or_iterable]) - return a new dictionary; the optional argument must be either a mapping whose items are copied, or a sequence of 2-tuples (or of sequences of length 2) giving the (key, value) pairs to be inserted into the new dictionary object([...]) - return a new featureless object; arguments are ignored classmethod(function) - see below staticmethod(function) - see below super(class_or_type[, instance]) - see below property([fget[, fset[, fdel[, doc]]]]) - see below...
If you didn't find what you need, try your search in the Python language documentation.