Pylint seems to not handle “from . import foo” style imports?

Yup, running that. It's only when I use the dot specifically, e.g. From foo import bar works, but not from . Import foo.

– dd. Jan 27 '10 at 17:00 Ahh, got. The link I found was using a relative name.

– Andrew Dalke Jan 28 '10 at 15:51.

Note that the "from . Import smthg" is only allowed in a Python package. I've tested this with pylint --version No config file found, using default configuration pylint 0.19.0, astng 0.19.1, common 0.46.0 Python 2.5.5 (r255:77872, Feb 1 2010, 19:53:42) GCC 4.4.3 and was not able to reproduce your problem: alf@lacapelle:/tmp$ ls package/ foo.Py __init__.

Py relative. Py alf@lacapelle:/tmp$ cat package/relative.Py from . Import foo alf@lacapelle:/tmp$ pylint -r n package/ No config file found, using default configuration ************* Module package C: 1: Missing docstring ************* Module package.

Foo C: 1: Black listed name "foo" C: 1: Missing docstring ************* Module package. Relative C: 1: Missing docstring W: 1: Unused import foo.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions