* Jakub Wilk <jw...@debian.org>, 2015-07-24, 14:46:
I started playing with checking Python imports here:
https://github.com/jwilk/adequate-imports

I've implemented Perl import checker, too.

DebConf modules were troublesome, because they tried to spawn a frontend, but I implemented a work-around.

Unfortunately, importing some Python modules have unwanted side effects. For example:

"import antigravity" spawns a web browser.

I blacklisted this one.

"import quodlibet.commands" segfaults.

Filed as #793673.

Now I import each module in a separate process, so this is no longer a big deal.

"import imdb.locale.generatepot" calls sys.exit().

I catch SystemExit to work around this.

"import pychecker2.VariableChecks" fails;
but "import pychecker.checker; import pychecker2.VariableChecks" starts checking your code. oO

I don't run into the latter behavior now that I import each module separately.

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to