python-syntax
python-syntax copied to clipboard
attribute named “print” wongly detected as syntax error in Python 3
trafficstars
This line is wrongly detected as a syntax error:
elif options.print:
But print is an existing attribute of options, and the code works.
Same problem when using the print function as object:
output = print