I might spot a false positive with emacs flycheck an python. This is happen when a I write in a file :
from sys import *
print('this is an error, like you 3:)', file = stderr)
Python run correctly but flycheck tell me that there is a syntax error. (I used standard error for the example but it's happen with any file descriptor)
This is not a real problem but it's a bit boring cause flycheck don't point out any next syntax error in the buffer.
EDIT : This is not a code error see screenshot
EDIT 2 :
$ python --version
Python 3.4.2
Your code triggers the following warnings with the syntax checker
python-flake8
(Version:3.5.0
) and no config file that alters the default behaviour. The problem is not with Flycheck but with your code:M-x flycheck-list-errors
which is bound toC-c ! l
by default will show you exactly this.The following would not yield any errors: