Skip to content
murmot

Results for “python function reference type example code find site:docs.python.org 1”

  • docs.python.org

    Built-in Types — Python 3.15.2 documentation

    The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions.

  • docs.python.org

    The Python Language Reference — Python 3.15.2 documentation

    1 day ago · The Python Language Reference ¶ This reference manual describes the syntax and core semantics of the language. It is terse, but attempts to be exact and complete. Elsewhere, the built-in object types and functions are described in Python built-ins reference. Standard library modules are described in The Python standard library.

  • docs.python.org

    8. Errors and Exceptions — Python 3.15.2 documentation

    In the example, the error is detected at the function print(), since a colon (':') is missing just before it. The file name (<stdin> in our example) and line number are printed so you know where to look in case the input came from a file. 8.2. Exceptions¶.

  • docs.python.org

    Python 3.15.2 documentation

    1 day 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

    3. Data model — Python 3.15.2 documentation

    This is because int is an immutable type, so the reference to 1 can be reused. ... The difference between a code object and a function object is that the function ...

  • docs.python.org

    9. Classes — Python 3.15.2 documentation

    9.3. A First Look at Classes¶. Classes introduce a little bit of new syntax, three new object types, and some new semantics.A piece of Python code that expects a particular abstract data type can often be passed a class that emulates the methods of that data type instead.

  • 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

    4. More Control Flow Tools — Python 3.15.2 documentation

    The first statement of the function body can optionally be a string literal; this string literal is the function’s documentation string, or docstring. (More about docstrings can be found in the section Documentation Strings.) There are tools which use docstrings to automatically produce...