About 50 results
Open links in new tab
  1. Built-in Exceptions — Python 3.14.3 documentation

    2 days ago · User code can raise built-in exceptions. This can be used to test an exception handler or to report an error condition “just like” the situation in which the interpreter raises the same exception; …

  2. 8. Errors and Exceptions — Python 3.14.3 documentation

    3 days ago · Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs. Most exceptions are not handled by …

  3. Exception Handling — Python 3.14.3 documentation

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

  4. The Python Standard Library — Python 3.14.3 documentation

    3 days ago · The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as …

  5. contextlib — Utilities for with-statement contexts — Python 3.14.3 ...

    3 days ago · It is occasionally desirable to catch exceptions from an __enter__ method implementation, without inadvertently catching exceptions from the with statement body or the context manager’s …

  6. Built-in Functions — Python 3.14.3 documentation

    3 days ago · If the object is a module object, the list contains the names of the module’s attributes. If the object is a type or class object, the list contains the names of its attributes, and recursively of the …

  7. traceback — Print or retrieve a stack traceback — Python 3.14.3 ...

    2 days ago · The return value is a list of strings, each ending in a newline. The list contains the exception’s message, which is normally a single string; however, for SyntaxError exceptions, it …

  8. json — JSON encoder and decoder — Python 3.14.3 documentation

    3 days ago · This can be used to raise an exception if invalid JSON numbers are encountered. If strict is false (True is the default), then control characters will be allowed inside strings.

  9. The Python Tutorial — Python 3.14.3 documentation

    3 days ago · After reading it, you will be able to read and write Python modules and programs, and you will be ready to learn more about the various Python library modules described in The Python …

  10. 7. Simple statements — Python 3.14.3 documentation

    3 days ago · The rules observed by various types and the exceptions raised are given with the definition of the object types (see section The standard type hierarchy). Assignment of an object to a target list, …