Skip to content
murmot

Results for “python function reference statement code error 0 site:docs.python.org 1”

  • docs.python.org

    7. Simple statements — Python 3.15.2 documentation

    If the target is an identifier (name): If the target is an attribute reference: The primary expression in the reference is evaluated. It should yield an object with assignable attributes; if this is not the case, TypeError is raised. That object is then asked to assign the assigned object to the given attribute; if it cannot perform the assignment,...

  • docs.python.org

    Built-in Exceptions — Python 3.15.2 documentation

    The built-in exceptions listed in this chapter can be generated by the interpreter or built-in functions. Except where mentioned, they have an “associated value” indicating the detailed cause of the error.

  • 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

    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.This is an error unless the replacement is intended. See section Standard Modules for more information.

  • docs.python.org

    Programming FAQ — Python 3.15.2 documentation

    2 days ago · It is part of the standard Python library, and is documented in the Library Reference Manual. You can also write your own debugger by using the code for pdb as an example. The IDLE interactive development environment, which is part of the standard Python distribution (normally available as idlelib), includes a graphical debugger.

  • docs.python.org

    8. Compound statements — Python 3.15.2 documentation

    2 days ago · The if, while and for statements implement traditional control flow constructs. try specifies exception handlers and/or cleanup code for a group of statements, while the with statement allows the execution of initialization and finalization code around a block of code. Function and class definitions are also syntactically compound statements.