403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/testing/plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /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