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: Feb. 23, 2014
Python 3.3.5 includes fixes for these important issues: a 3.3.4 regression in zipimport (see http://bugs.python.org/issue20621) a 3.3.4 regression executing scripts with a coding declared and Windows newlines (see http://bugs.python.org/issue20731) potential DOS using compression codecs in bytes.decode() (see http://bugs.python.org/issue19619 and http://bugs.python.org/issue20404) and also fixes quite a few other …
View Release Notes
Released: March 2, 2014
Released: March 9, 2014
...functions PEP 409, suppressing exception context PEP 414, explicit Unicode literals to help with porting PEP 418, extended platform-independent clocks in the "time" module PEP 412, a new key-sharing dictionary implementation that significantly saves memory for object-oriented code PEP 362, the function-signature object The new "faulthandler" module that helps diagnosing crashes The new "unittest.mock" module The new "ipaddress" module The "sys.impleme...
...function. The import statement is now serialized between different threads. The finalization order is much more sensible. On Mac and Windows, the 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. Th...
Python Success Stories Introduction LoveIntros is an online singles community for people living in the Northwest United States. The LoveIntros Web application allows members to create personal profiles, send and receive anonymous e-mails, create private Web journals, perform advanced profile searches, and execute many other functions. By providing a safe and effective way for individuals to find each other, LoveIntros makes it easier to meet new people who have similar interests and values an...
...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...
...declarations for a and b, and does not allow overloading of the + operator for instances of user-defined classes. For these reasons, Python is much better suited as a "glue" language, while Java is better characterized as a low-level implementation language. In fact, the two together make an excellent combination. Components can be developed in Java and combined to form applications in Python; Python can also be used to prototype components until their design can be "hardened" in a Java...
...functions I'd need for image manipulation and display management, and there were a few existing projects there that provided useful examples. Pyzzle almost provided what I needed, but wasn't as well-organized internally as I would have liked to be able to quickly experiment with new features. Implementation Using the existing examples to help guide my pygame use, I created a new framework for my program. My program, which I named simply "Nat's World", would provide a virtual world ...
...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 staticmethod objects returns the underlying function. If a class attribute has no __get__ met...
...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...
...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...
Released: Nov. 15, 2022
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.0a2 is the second of seven planned alpha releases. Alpha releases are intended to make it easier to test the current state …
...functions. The constructors have the same signature as the functions in the past. PyThreadState_SetAsyncEnc() - A new API (deliberately accessible only from C) to interrupt a thread by sending it an exception. New or upgraded modules and packages Many new doctest extensions from Jim Fulton, which among other enhancements, allows doctests to be run by unittests. csv - support for reading and writing files in so-called comma-separated-value format. (New in 2.3b1.) timeit - module to time t...
...function echofilter directly available: echofilter(input, output, delay=0.7, atten=4) Note that when using from package import item, the item can be either a submodule (or subpackage) of the package, or some other name defined in a the package, like a function, class or variable. The import statement first tests whether the item is defined in the package; if not, it assumes it is a module and attempts to load it. If it fails to find it, ImportError is raised. Contra...
...function _PyTime_DoubleToTimet added, to convert a Python timestamp (C double) to platform time_t with some out-of-bounds checking. Declared in new header file timefuncs.h. It would be good to expose some other internal timemodule.c functions there. New public functions PyEval_EvaluateFrame and PyGen_New to expose generator objects. New public functions Py_IncRef() and Py_DecRef(), exposing the functionality of the Py_XINCREF() and Py_XDECREF macros. Useful for runtime dynamic embedding of Pyt...
If you didn't find what you need, try your search in the Python language documentation.