> I am wondering whether it is possible to run > pylint on a string containing code.
You could write the string to a temp file, and run pylint on that file.
Skip