Skip to content
murmot

Results for “python function reference statement code download site:docs.python.org php”

  • docs.python.org

    8. Errors and Exceptions — Python 3.15.2 documentation

    8.2. Exceptions¶. Even if a statement or expression is syntactically correct, it may cause an error when an attempt is made to execute it. Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs.

  • docs.python.org

    Built-in Functions — Python 3.12.16 documentation

    This function raises SyntaxError if the compiled source is invalid, and ValueError if the source contains null bytes. If you want to parse Python code into its AST representation, see ast.parse(). Raises an auditing event compile with arguments source and filename.

  • docs.python.org

    Python 3.15.2 documentation

    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

    6. Modules — Python 3.15.2 documentation

    A module can contain executable statements as well as function definitions. These statements initialize the module. Python executes them only the first time it loads the module.

  • 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

    3. Data model — Python 3.15.2 documentation

    1 day ago · 3. Data model ¶ 3.1. Objects, values and types ¶ Objects are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. Even code is represented by objects. Every object has an identity, a type and a value. An object’s identity never changes once it has been created; you may think of it as the object’s address in memory. The ...

  • docs.python.org

    5. The import system — Python 3.15.2 documentation

    1 day ago · 5. The import system ¶ Python code in one module gains access to the code in another module by the process of importing it. The import statement is the most common way of invoking the import machinery, but it is not the only way. Functions such as importlib.import_module () and built-in __import__ () can also be used to invoke the import machinery. An eager import statement performs two ...