Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#328 Syntax Error with allowed python word

open
nobody
None
5
2015-03-26
2013-03-05
sevaader
No

The following code produces syntaxError warning : invalid syntax

with open("file.txt", "w") as fd:
fd.write("hello world")

The code still can be run. It's just a false flag warning message.

Discussion

  • I just try that on my forked repo, and it didn't show the warning.