About 1,050 results
Open links in new tab
  1. Built-in Exceptions — Python 3.13.3 documentation

    1 day ago · In Python, all exceptions must be instances of a class that derives from BaseException. In a try statement with an except clause that mentions a particular class, that clause also handles any exception classes derived from that class (but not exception classes from which it is derived).

  2. 8. Errors and Exceptions — Python 3.13.3 documentation

    1 day ago · BaseException is the common base class of all exceptions. One of its subclasses, Exception, is the base class of all the non-fatal exceptions. Exceptions which are not subclasses of Exception are not typically handled, because they are used to indicate that

  3. Built-in Functions — Python 3.13.3 documentation

    1 day ago · If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an InterruptedError exception (see PEP 475 for the rationale).

  4. Exception Handling — Python 3.13.3 documentation

    1 day ago · All standard Python exceptions are available as global variables whose names are PyExc_ followed by the Python exception name. These have the type PyObject * ; they are all class objects. For completeness, here are all the variables:

  5. socket — Low-level networking interface — Python 3.13.3 …

    All errors raise exceptions. The normal exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or address semantics raise OSError or one of its subclasses. Non-blocking mode is supported through setblocking(). A generalization of this based on timeouts is supported through settimeout().

  6. Coroutines and Tasks — Python 3.13.3 documentation

    1 day ago · asyncio.Task inherits from Future all of its APIs except Future.set_result() and Future.set_exception(). An optional keyword-only context argument allows specifying a custom contextvars.Context for the coro to run in.

  7. The Python Standard Library — Python 3.13.3 documentation

    1 day 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 modules written in Python that provide standardized solutions for many problems that occur in everyday programming.

  8. 1. C나 C++로 파이썬 확장하기 — Python 3.13.2 문서

    There are predeclared C objects corresponding to all built-in Python exceptions, such as PyExc_ZeroDivisionError, which you can use directly. Of course, you should choose exceptions wisely — don’t use PyExc_TypeError to mean that a file couldn’t be opened (that should probably be PyExc_OSError ).

  9. warnings — Warning control — Python 3.13.3 documentation

    1 day ago · There are a number of built-in exceptions that represent warning categories. This categorization is useful to be able to filter out groups of warnings. While these are technically built-in exceptions, they are documented here, because conceptually they belong to …

  10. logging — Logging facility for Python — Python 3.13.3 …

    If an exception tuple (in the format returned by sys.exc_info()) or an exception instance is provided, it is used; otherwise, sys.exc_info() is called to get the exception information. The second optional keyword argument is stack_info , which defaults to False .

Refresh