◐ Shell
clean mode source ↗

Message 122048 - Python tracker

When someone run Demo/comparisons/regextest.py without arguments it waits for lines to be inserted in the command line silently, until the EOF, or Ctrl+D in Linux, is entered.

If the user read the file, editing or using cat Demo/comparisons/sortingtest.py he have to understand the code to figure out how to use it.

My suggestion is to add an usage message, plus the if __name__ == '__main__':.