Skip to content
murmot

Results for “python function reference table format example code site:docs.python.org”

  • docs.python.org

    9. Classes — Python 3.15.2 documentation

    Examples of namespaces are: the set of built-in names (containing functions such as abs(), and built-in exception names); the global names in a module; and the local names in a function invocation. In a sense the set of attributes of an object also forms a namespace.

  • docs.python.org

    Built-in Functions — Python 3.12.16 documentation

    This code is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (x in this case.) The returned property object also has the attributes fget, fset, and fdel corresponding to the constructor arguments.

  • docs.python.org

    Python 3.15.2 documentation

    20 hours ago · What's new in Python 3.15? 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 Library reference Standard library modules Language reference Syntax and language elements Python setup and usage How to install, configure, and use Python ...

  • docs.python.org

    logging — Logging facility for Python — Python 3.15.2 documentation

    Auto Light Dark. Table of Contents. logging — Logging facility for Python. Logger Objects.This function may be called from within a new class definition, to ensure that installing a customized Logger class will not undo customizations already applied by other code. For example

  • docs.python.org

    The Python standard library — Python 3.15.2 documentation

    1 day ago · Elsewhere, The Python Language Reference describes the exact syntax and semantics of the Python language, and Python built-ins reference describes the built-in functions. Python’s standard library is extensive, offering a wide range of facilities as indicated by the long table of contents listed below.

  • docs.python.org

    6. Modules — Python 3.15.2 documentation

    If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost.6.2. Standard Modules. 6.3. The dir() Function. 6.4. Packages. 6.4.1. Importing * From a Package. 6.4.2. Intra-package References. Previous topic.

  • docs.python.org

    5. Data Structures — Python 3.15.2 documentation

    20 hours ago · 5. Data Structures ¶ This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists ¶ The list data type has some more methods. Here are all of the methods of list objects: list.append(value, /) Add an item to the end of the list. Similar to a [len (a):] = [x]. list.extend(iterable, /) Extend the list by appending all ...