python-syntax icon indicating copy to clipboard operation
python-syntax copied to clipboard

attribute named “print” wongly detected as syntax error in Python 3

Open fdik opened this issue 4 years ago • 1 comments
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.

fdik avatar Mar 29 '21 10:03 fdik

Same problem when using the print function as object:

output = print

fdik avatar Mar 29 '21 10:03 fdik