On 04 novembre 12:55, Gelonida N wrote: > Please look at following small python snippet > > > # code starts > a=3 > from __future__ import absolute_import > print "will never see this" > # code ends > > > pylint 'just' reports a warning saying > > W0410: 2,0: __future__ import is not the first non docstring statement > > > > python 2.6.5 on the other hand will fail with a syntax error. > > > $ python bla.py > > File "bla.py", line 2 > > from __future__ import absolute_import > > SyntaxError: from __future__ imports must occur at the beginning of the file > > > > Perhaps the warning should be promoted to an error? > > Sometimes I grep only for errors when trying to identify issues and > missed thus this warning.
yep you're right. Would you add a ticket for this please? -- 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
