This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

FEniCS, pyling and wildcard import

+1 vote

Hello

I recently started using python and I installed the syntax checker pylint to be able to write cleaner code. I pylinted a fenics example and found a lot of errors, most of them related with the fact that all the examples use the wildcard import:

from dolfin import *

I have seen in other places that this is not a good practice in python because of the confusion with the namespaces. I guess that it might not matter if you're only importing dolfin. My questions are, why do we wildcard import everything? Second, does anybody use pylint and have a good configuration with FEniCS? Thanks.

asked Apr 24, 2016 by miguelito FEniCS Novice (760 points)
...