403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/terminal/pt_inputhooks/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/terminal/pt_inputhooks/__pycache__/asyncio.cpython-311.pyc
�

�@�c5��H�dZddlmZddlmZejd��Zd�ZdS)a\
Inputhook for running the original asyncio event loop while we're waiting for
input.

By default, in IPython, we run the prompt with a different asyncio event loop,
because otherwise we risk that people are freezing the prompt by scheduling bad
coroutines. E.g., a coroutine that does a while/true and never yield back
control to the loop. We can't cancel that.

However, sometimes we want the asyncio loop to keep running while waiting for
a prompt.

The following example will print the numbers from 1 to 10 above the prompt,
while we are waiting for input. (This works also because we use
prompt_toolkit`s `patch_stdout`)::

    In [1]: import asyncio

    In [2]: %gui asyncio

    In [3]: async def f():
       ...:     for i in range(10):
       ...:         await asyncio.sleep(1)
       ...:         print(i)


    In [4]: asyncio.ensure_future(f())

�)�__version__)�get_asyncio_loopz3.c���trdSt����fd�}|���}��||��	������|��dS#��|��wxYw)z7
    Inputhook for asyncio event loop integration.
    Nc�0������dS)N)�stop)�loops��H/usr/lib/python3/dist-packages/IPython/terminal/pt_inputhooks/asyncio.pyrzinputhook.<locals>.stop7s����	�	������)�PTK3r�fileno�
add_reader�run_forever�
remove_reader)�contextrrrs   @r	�	inputhookr&s�����������D�������^�^�
�
�F��O�O�F�D�!�!�!�#����������6�"�"�"�"�"�����6�"�"�"�"���s�	A4�4BN)	�__doc__�prompt_toolkitr�ptk_version�IPython.core.async_helpersr�
startswithrr�r
r	�<module>rs`����:6�5�5�5�5�5�7�7�7�7�7�7��{��d�#�#��#�#�#�#�#r

Youez - 2016 - github.com/yon3zu
LinuXploit