The Python standard library — Python 3.15.2 documentation
In addition to the standard library, there is an active collection of hundreds of thousands of components (from individual programs and modules to packages and ...
In addition to the standard library, there is an active collection of hundreds of thousands of components (from individual programs and modules to packages and ...
Source code: Lib/cgi.py Support module for Common Gateway Interface (CGI) scripts. This module defines a number of utilities for use by CGI scripts written in Python.
1 day ago · This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers, complex numbers. Arrays are mutable sequence types and behav...
Source code: Lib/bisect.py This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.
The Python Enhancement Proposal which proposed this addition to Python.The unix_dialect class defines the usual properties of a CSV file generated on UNIX systems, i.e. using '\n' as line terminator and quoting all fields. It is registered with the dialect name 'unix'. Added in version 3.2.
1 day ago · Source code: Lib/html/parser.py This module defines a class HTMLParser which serves as the basis for parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML. Example HTML Parser...
The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``. _thread ...
This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. More on Lists: The list data type has some more methods.
1 day ago · Structured Markup Processing Tools ¶ Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces for working with the Extensible Markup Language (XML).
Python's binary releases also ship an add-on module together with it. Tcl. Tcl is a dynamic interpreted programming language, just like Python. Though it can be ...
This code loads a Python script using argv[1], and calls the function named in argv[2]. Its integer arguments are the other values of the argv array. If you compile and link this program (let’s call the finished executable call), and use it to execute a Python script, such as
1 day ago · It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. For a description of standard objects and modules, see Python built-ins reference and The Python standard library. The Python Language Reference gives a more formal definition of the language.
Symbols · function definition · import statement · in argparse module · in assignment target list · in AST grammar · in expression lists, [1] · in function calls, [1] ...
1 day ago · html.unescape(s) ¶ Convert all named and numeric character references (e.g. >, >, >) in the string s to the corresponding Unicode characters. This function uses the rules defined by the HTML 5 standard for both valid and invalid character references, and the list of HTML 5 named character references. Added in version 3.4.
... program. To support this, Python has a way to put definitions in a file and use them in a script or in an interactive instance of the interpreter. Such a file ...
1 day ago · For an informal introduction to the language, see The Python Tutorial. For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API reference manual describes the interfaces available to C/C++ programmers in ...
""" import os import smtplib # For guessing MIME type based on file ... Add the html version. This converts the message into a multipart/alternative ...