For a long time i have been trying to figure out what is the best way to pass flags to python functions. The most straightforward way is something like:
def func
Some Python standard libraries use this:
re.match(pattern, str, re.MULTILINE | re.IGNORECASE)
You can tweak this approach by using *args:
my.func(a, b, c, my.MULTLINE, my.IGNORECASE)
I would really recommend going with flag1=True: