pylint or similar to test version-specific language constructs?

jkn jkn_gg at nicorp.f9.co.uk
Wed Jan 9 18:45:32 EST 2013


Hi all
    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.

I haven't found anything in pylint which indicates it can do this sort
of check; am I missing anything? Other suggestions for this kind of
checking welcome.

    Thanks
    Jon N



More information about the Python-list mailing list