Код: Выделить всё
def run_tests(args):
"""run tests on methods in {0}
usage: {0} --tests
""".format(__file__)
pass
Я хотел бы видеть что-то вроде:
Код: Выделить всё
Help on function run_tests in module myfile:
run_tests(args)
runs tests on methods in myfile.py
usage: myfile.py --tests
Подробнее здесь: https://stackoverflow.com/questions/321 ... n-python-3
Мобильная версия