Why Pylint says print('foo', end='') is an invalid syntax?
<p>This very simple code:</p>

<pre><code>#!/usr/bin/python3
print('foo', end='')
</code></pre>

<p>Makes Pylint unhappy (both on Python2 and Python3):</p>

<pre><code>pylint ./pylint.py
No config file found, using default configuration
************* Module pylint
E:  2, 0: invalid syntax (syntax-error)
</code></pre>

<p>Why?</p>

<p>I got this error when running pylint. But my pylint only had support for python2. So it errored:</p>

<pre><code>$ pylint foo.py 
No config file found, using default configuration
************* Module foo
E:  2, 0: invalid syntax (syntax-error)
</code></pre>

<p>So I did <code>pip3 install pylint</code>.</p>

<p>And then it all worked (or at least it got past the syntax error):</p>

<pre><code>$ python3 -m pylint foo.py  | head
No config file found, using default configuration
************* Module foo
C:  1, 0: Black listed name "foo" (blacklisted-name)
C:  1, 0: Missing module docstring (missing-docstring)
.....
</code></pre>

<p>See here for more info on pylint for python2 and 3 in one system: <a href="http://askubuntu.com/questions/340940/installing-pylint-for-python3-on-ubuntu">http://askubuntu.com/questions/340940/installing-pylint-for-python3-on-ubuntu</a></p>

python pylint