Description
Originally reported by: Buck Evan (BitBucket: bukzor, GitHub: @bukzor?)
This simple script generates a (admittedly perverse) class which, when analyzed causes astroid to stack overflow.
http://paste.pound-python.org/show/HvGNK3BPWVkbqY1VAlyl/
If the number of methods is somewhat reduced, a huge running time is incurred instead, which is (for me) even worse. I'm trying to measure it, but currently it's ten minutes and counting.
Here is a trace of the inference being performed at the time of stack overflow:
http://paste.pound-python.org/show/QEm5Q15I1WMrHGnrWyqU/
This is a real issue for us as the cheetah templating framework generates code equivalent to the above. This causes pylint to be unusable to check these generated files. I do want to check these generated python files for issues, and pylint seems like the most full-featured tool available.