Elliot Edmunds added the comment:
I have personally come across situations where I am calling a Python script
from a C program and would like to check the exit codes of the script, and have
had to write sys.exit(1) and sys.exit(0) in Python, and compared them to
EXIT_SUCCESS/EXIT_FAILURE in
Elliot Edmunds added the comment:
Not sure how helpful it would be to have the re.sub expressions for lstrip and
rstrip, but I think it would look like:
l_stripped = re.sub(r'^\s*', '', foo)
r_stripped = re.sub(r'\s*$', '', foo)
--
Elliot Edmunds added the comment:
I agree that linking to the precedence table is probably the best solution.
A different option would be to add an extra column listing the "priority" and
rank the priorities of the different operations.
--
nosy: +Elli