Skip to content
murmot

Results for “python function reference statement code site:docs.python.org 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. [1] (They are also run if the file is executed as a script.)

  • docs.python.org

    Exception Handling — Python 3.15.2 documentation

    1 day ago · The functions described in this chapter will let you handle and raise Python exceptions. It is important to understand some of the basics of Python exception handling. It works somewhat like the PO...

  • docs.python.org

    Design and History FAQ — Python 3.15.2 documentation

    Why does Python use methods for some functionality (e.g. list.index()) but functions for other (e.g. len(list))? Why is join() a string method instead of a list or tuple method? How fast are exceptions? Why isn’t there a switch or case statement in Python?

  • docs.python.org

    Python 3.15.2 documentation

    21 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

    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 ...