pylint or similar to test version-specific language constructs?

Gisle Vanem gvanem at
Thu Jan 10 01:07:40 CET 2013

"jkn" <jkn_gg at> wrote:

>    I have to write python code which must run on an old version of
> python (v2.4) as well as a newer (v2.7). I am using pylint and would
> like to check if is possible to check with pylint the use of operators
> etc. which are not present in 2.4; the ternary operator springs to
> mind.

No idea about PyLint. Why not install Python 2.4 and test
with that? Sounds safer IMHO.


More information about the Python-list mailing list