On 10 janvier 15:57, Jean-Michel Pichavant wrote: > Hello, Hi, > The following file generates an exception with pylint > > test.py > ==== > def doNotexecute(): > import IPython > shell = IPython.Shell.IPShellEmbed() > ==== > > If pylint is run from an Ipython shell, then no exception is shown, > however it still takes a lot of time for pylint to return (around 30 > sec). > If the last line is commented, then everything is fine. > > > 1/ is it a known bug or misconfiguration ?
well, this kind of bug occurs from time to time when pylint has to import a C-compiled module to make inference work, and this module isn't properly built (eg usually because it breaks when not imported as expected). It's a pylint bug though since it shouldn't crash in such cases. I've checked in a fix for a similar pb last week, but I'm not sure it will fix that one. I'll try to take a look before I publish a new pylint release (eg this week hopefuly). > 2/ is there a whay to tell pylint no to walk into objects (it looks > like introspecting Ipython is the problem here) You may try to deactivate the typecheck checker, but I'm not sure it will be enough. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
