Python 3.15.2 documentation
Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes.
Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes.
Download an archive containing all the documentation for this version of Python
1 day ago · Source code: Lib/pty.py The pty module defines operations for handling the pseudo-terminal concept: starting another process and being able to write to and read from its controlling terminal progra...
Python fully supports mixed arithmetic: when a binary arithmetic operator has operands of different built-in numeric types, the operand with the “narrower” type is widened to that of the other
11 hours ago · Source code: Lib/timeit.py This module provides a simple way to time small bits of Python code. It has both a Command-line interface as well as a callable one. It avoids a number of common traps fo...
Since Python 3.6, in an async def function, an async for clause may be used to iterate over a asynchronous iterator.
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see open(), if you want to manipulate paths, s...
Python lists have a built-in list.sort() method that modifies the list in-place. There is also a sorted() built-in function that builds a new sorted list from an iterable.
1 day ago · Installing Python modules ¶ As a popular open source development project, Python has an active supporting community of contributors and users that also make their software available for other Python developers to use under open-source license terms.
The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems. Running python -m tkinter from the command line should open a window demonstrating a simple Tk interface, letting you know that tkinter is properly installed on your system, and also ...