So I am using argparse and have an argument called async. The following code works in Python 2 but not in Python 3.8 and newer
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--async", action='store_true')
ARG = parser.parse_args()
if ARG.async:
print("Async")
Unfortunatelly async seems to be a new keyword and there is SyntaxError on the line with if statement. How to solve when I don't want to rename it?