asyncio.events.BaseDefaultEventLoopPolicy - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on class BaseDefaultEventLoopPolicy in asyncio.events:

asyncio.events.BaseDefaultEventLoopPolicy = class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy)
 |  Default policy implementation for accessing the event loop.
 |
 |  In this policy, each thread has its own event loop.  However, we
 |  only automatically create an event loop by default for the main
 |  thread; other threads by default have no event loop.
 |
 |  Other policies may have different rules (e.g. a single global
 |  event loop, or automatically creating an event loop per thread, or
 |  using some other notion of context to which an event loop is
 |  associated).
 |
 |  Method resolution order:
 |      BaseDefaultEventLoopPolicy
 |      AbstractEventLoopPolicy
 |      builtins.object
 |
 |  Methods defined here:
 |
 |  __init__(self)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |
 |  get_event_loop(self)
 |      Get the event loop for the current context.
 |
 |      Returns an instance of EventLoop or raises an exception.
 |
 |  new_event_loop(self)
 |      Create a new event loop.
 |
 |      You must call set_event_loop() to make this the current event
 |      loop.
 |
 |  set_event_loop(self, loop)
 |      Set the event loop.
 |
 |  ----------------------------------------------------------------------
 |  Methods inherited from AbstractEventLoopPolicy:
 |
 |  get_child_watcher(self)
 |      Get the watcher for child processes.
 |
 |  set_child_watcher(self, watcher)
 |      Set the watcher for child processes.
 |
 |  ----------------------------------------------------------------------
 |  Data descriptors inherited from AbstractEventLoopPolicy:
 |
 |  __dict__
 |      dictionary for instance variables (if defined)
 |
 |  __weakref__
 |      list of weak references to the object (if defined)


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 08:02 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!