Skip to content
murmot

Results for “python function reference example form code error site:docs.python.org pdf”

  • docs.python.org

    Using the C API: Assorted topics — Python 3.15.2 documentation

    so on — the most detailed cause of the error was already reported by the function that first detected it. Once the error reaches the Python interpreter’s main loop, this aborts the currently executing Python code and tries to find an exception handler specified by the Python programmer.

  • docs.python.org

    Exception Handling — Python 3.15.2 documentation

    This function sets the error indicator and returns NULL. exception should be a Python exception class. The format and subsequent parameters help format the error message; they have the same meaning and values as in PyUnicode_FromFormat(). format is an ASCII-encoded string.

  • 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

    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

    Logging HOWTO — Python 3.15.2 documentation

    A simple example¶ · logging module, like · logging.debug , rather than creating a logger and calling functions on it. These functions operate on the root logger, ...

  • docs.python.org

    1. Étendre Python en C ou C++ — Documentation Python 2.7.18

    The object reference returned from a C function that is called from Python must be an owned reference — ownership is transferred from the function to its caller. 1.10.3. Thin Ice¶. There are a few situations where seemingly harmless use of a borrowed reference can lead to problems.

  • docs.python.org

    6. Expressions — Python 3.15.2 documentation

    2 days ago · 6. Expressions ¶ This chapter explains the meaning of the elements of expressions in Python. Syntax Notes: In this and the following chapters, grammar notation will be used to describe syntax, not lexical analysis. When (one alternative of) a syntax rule has the form: name: othername and no semantics are given, the semantics of this form of name are the same as for othername. 6.1. Arithmetic ...

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