Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « BaseEventLoop » Python 3.11.3

Méthode asyncio.BaseEventLoop.set_exception_handler

Signature de la méthode set_exception_handler

def set_exception_handler(self, handler) 

Description

help(BaseEventLoop.set_exception_handler)

Set handler as the new event loop exception handler.

        If handler is None, the default exception handler will
        be set.

        If handler is a callable object, it should have a
        signature matching '(loop, context)', where 'loop'
        will be a reference to the active event loop, 'context'
        will be a dict object (see `call_exception_handler()`
        documentation for details about context).