mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28600: Optimize loop.call_soon().
Run expensive type checks only in debug mode. In addition, stop supporting passing handles to loop.run_in_executor.
This commit is contained in:
parent
9e80eeb22d
commit
491a912659
5 changed files with 29 additions and 57 deletions
|
@ -82,7 +82,6 @@ class Handle:
|
|||
'_source_traceback', '_repr', '__weakref__')
|
||||
|
||||
def __init__(self, callback, args, loop):
|
||||
assert not isinstance(callback, Handle), 'A Handle is not a callback'
|
||||
self._loop = loop
|
||||
self._callback = callback
|
||||
self._args = args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue