In python, given this bit of code
def main(args):
with open("logfile.txt", 'a', newline='') as log_file:
print("LOG ", args, file=log_file)
Attempting to rename "log_file" fails with
---------------------------
SlickEdit Pro
---------------------------
Definition of 'log_file' not found.
---------------------------
OK
---------------------------