403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.52
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/IPython/testing/plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/testing/plugin/simple.py
"""Simple example using doctests.

This file just contains doctests both using plain python and IPython prompts.
All tests should be loaded by Pytest.
"""

def pyfunc():
    """Some pure python tests...

    >>> pyfunc()
    'pyfunc'

    >>> import os

    >>> 2+3
    5

    >>> for i in range(3):
    ...     print(i, end=' ')
    ...     print(i+1, end=' ')
    ...
    0 1 1 2 2 3 
    """
    return 'pyfunc'


def ipyfunc():
    """Some IPython tests...

    In [1]: ipyfunc()
    Out[1]: 'ipyfunc'

    In [2]: import os

    In [3]: 2+3
    Out[3]: 5

    In [4]: for i in range(3):
       ...:     print(i, end=' ')
       ...:     print(i+1, end=' ')
       ...:
    Out[4]: 0 1 1 2 2 3
    """
    return "ipyfunc"

Youez - 2016 - github.com/yon3zu
LinuXploit