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: May 3, 2021
This is a beta preview of Python 3.10 Python 3.10 is still in development. 3.10.0b1 is the first of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support …
Released: Jan. 14, 2022
This is the second maintenance release of Python 3.10 Python 3.10.2 is the newest major release of the Python programming language, and it contains many new features and optimizations. This is a special bugfix release ahead of schedule to address a memory leak that was happening on certain function calls …
View Release Notes
Released: May 31, 2021
This is a beta preview of Python 3.10 Python 3.10 is still in development. 3.10.0b2 is the second of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support …
Released: July 10, 2021
This is a beta preview of Python 3.10 Python 3.10 is still in development. 3.10.0b4 is the fourth and last of the beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to …
Released: June 17, 2021
This is a beta preview of Python 3.10 Python 3.10 is still in development. 3.10.0b3 is the third of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support …
...case of module file names must match the case as used in the import statement. (On Unix, this was always true, of course.) When you specify the -t option, the tokenizer warns about inconsistent mixing of spaces and tabs. Two -t options and this causes syntax errors instead. See also Tools/scripts/tabnanny.py. All library modules are warning-free. The freeze tool now supports hierarchical module names. New standard modules: threading, getpass, imaplib, poplib, smtplib, Tkdnd (Tkinter drag-and-...
...case, the index may be a slice object, so these recomputed every day or month name each time they were indexed. This is much slower than necessary in the usual case, when the index is just an integer. In that case, only the single spelling needed is recomputed now; and, when the index is a slice object, only the spellings needed by the slice are recomputed now. Patch 1061679: Added __all__ to pickletools.py. Build Bug 1034277 / Patch 1035255: Remove compilation of core against CoreServices...
...match the regular expression with the beginning of the input. Find out which alternative matched. If the token is white space, ignore it. Otherwise, append it to the token list. Continue with step 1, this time starting at the end of the previous token, until all input is consumed. Given the complete token list, perform the disambiguation, modifying the recognized tokens as specified. Pass the token list to the parser. It should be noted that thi...
...case-sensitive. PEP 235 (Import on Case-Insensitive Platforms) is implemented. See http://python.sourceforge.net/peps/pep-0235.html for full details, especially the "Current Lower-Left Semantics" section. The new Windows import rules are simpler than before: If the PYTHONCASEOK environment variable exists, same as before: silently accept the first case-insensitive match of any kind; raise ImportError if none found. Else search sys.path for the first case-sensitive match; raise Im...
...match the appropriate function. This has several disadvantages: firstly, on many implementations the C++ exception-handling mechanism is highly optimized for the case where no exception is thrown, and throwing an exception can pose serious performance penalties. Secondly, enough C++ implementations have bugs in their exception-handling mechanisms that it is best not to rely on exceptions for routine control flow. Goal: Modification of the type conversion mechanism so...
...case of underflow, and return 0 instead in underflow cases. Whether Python used to raise OverflowError in case of underflow was platform- dependent (it did when the platform math library set errno to ERANGE on underflow). Fixed a bug in StringIO that occurred when the file position was not at the end of the file and write() was called with enough data to extend past the end of the file. Fixed a bug that caused Tkinter error messages to get lost on Windows. The bug wa...
...case. and ascii_uppercase were added to the string module. These a locale-independent constants, unlike letters, lowercase, and uppercase. These are now use in appropriate locations in the standard library. The flags used in dlopen calls can now be configured using sys.setdlopenflags and queried using sys.getdlopenflags. Fredrik Lundh's xmlrpclib is now a standard library module. This provides full client-side XML-RPC support. In addition, Demo/xmlrpc/ contains two server frameworks (one Soc...
...cases under the premise that these use cases: have Python as their main focus and are intended to support and further the use of the Python programming language, always use the logo associated with text differentiating them from the Python programming language itself, and include a disclaimer mentioning the PSF trademark and a non-affiliation statement, e.g.: ""Python" and the Python Logo are trademarks of the Python Software Foundation (PSF). [We] are not affiliated with the PSF...
...matches their behavior.) On the other hand, PySequence_SetItem(list, index, item) *does* increment the reference count of the item. And it is considered reference count neutral. (But it doesn't work for tuples, which are immutable; this is why you need PyTuple_SetItem().) 2) What the heck is going on with printing? Am I somehow saving the object from ignoble destruction by calling repr on it just before I need it? Could this be a problem with refcounting objects inserted in t...
...case wasn't handled correctly in all cases. Fixed problem where PyWeakref_NewRef() and PyWeakref_NewProxy() assumed 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...
...Matches(PyObject *); int PyErr_GivenExceptionMatches(PyObject *, PyObject *); void PyErr_NormalizeException(PyObject**, PyObject**, PyObject**); PyErr_ExceptionMatches(exception) should be used in preference over PyErr_Occurred()==exception, since the latter will return an incorrect result when the exception raised is a class derived from the exception tested for. PyErr_GivenExceptionMatches(raised_exception, exception) performs the same test as PyErr_ExceptionMatches() but allow...
...match the unicode standards of py3k. In other words, mixing bytes and unicode strings (be it as pattern, search string or replacement string) raises a TypeError. Moreover, the re.UNICODE flag is enabled automatically for unicode patterns, and can be disabled by specifying a new re.ASCII flag; as for bytes patterns, ASCII matching is the only option and trying to specify re.UNICODE for such patterns raises a ValueError. Issue #3300: make urllib.parse.[un]quote() default to UTF-8. Code contributed...
...matching increase in our current asset account balance." Kurt concludes his report with a list of financial business items he will be focused on, he said: "My focus is on PSF Sponsor invoicing, Federal taxes, PyCon invoicing, the Associate Member program, and AR reduction. I'm also looking into fiscal sponsorship issues." Board Discussion: S. Holden: "Our total equity remains satisfactory, and with luck, the next PyCon is going to bring a boost to our funds and reserves."...
...matched by a similar increase in liability. Accounts Receivable was down by 115K, reflecting payments by PyCon and PSF sponsors. As of 20May, AR is 126K. Accounts Payable was up by 162K at the end of April due to several large PyCon invoices received around the end of the month. As of 20May, AP is 30K. April continued to be extremely busy financially, but the P&L won't show much change until we recognize the results of PyCon 2012. At that point (triggered by settling accounts with the con...
...matching funds of 10 Euros for each 100 Euros raised, not to exceed $1,500 Euros & request an invoice. He will also provide fund-raising ideas and copy S. Holden on the correspondence. Status: pending. [111] Originally from 14 December 2009, Section 8, Funding for Python 3 Email Module: S. Holden will inform David R. Murray of the boards decision to offer a seed funding grant of $4,000 & assist with raising a further $10,000. Status: pending. [112] Originally from 14 December 2009, Sec...
If you didn't find what you need, try your search in the Python language documentation.