[issue10588] imp.find_module raises unexpected SyntaxError
New submission from Emile Anclin emile.anc...@logilab.fr: Considering following file: $ cat pylint/test/input/func_unknown_encoding.py # -*- coding: IBO-8859-1 -*- check correct unknown encoding declaration __revision__ = '' $ When we try to find that module, imp.find_module raises SyntaxError: from imp import find_module find_module('func_unknown_encoding', None) Traceback (most recent call last): File stdin, line 1, in module SyntaxError: encoding problem: with BOM It should be considered as a bug, as stated by Brett Cannon: Considering these semantics changed between Python 2 and 3 w/o a discernable benefit (I would consider it a negative as finding a module should not be impacted by syntactic correctness; the full act of importing should be the only thing that cares about that), I would consider it a bug that should be filed. -- messages: 122896 nosy: emile.anclin priority: normal severity: normal status: open title: imp.find_module raises unexpected SyntaxError type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10588 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10445] _ast py3k : add lineno back to args node
New submission from Emile Anclin emile.anc...@logilab.fr: For Python3x, in the tree generated by _ast, for the args node (representing an argument of a function), the lineno (and the col_offset) information disappeared from those nodes. It would be nice to have them back (for instance for Pylint) -- components: None messages: 121357 nosy: emile.anclin priority: normal severity: normal status: open title: _ast py3k : add lineno back to args node type: resource usage versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
astng 0.20.0 and pylint 0.20.0 releases
Hi, We are happy to announce astng 0.20.0 and pylint 0.20.0 releases. Pylint http://www.logilab.org/project/pylint is a static code checker based on Astng, both depending on logilab-common 0.49. Astng http://www.logilab.org/project/logilab-astng builds an enhanced Abstract Syntax Tree for Pylint. Astng 0.20.0 is a major refactoring and speed improvement, all along fixing a lot of important bugs: http://www.logilab.org/project/logilab-astng/0.20.0 Pylint 0.20.0 uses the new Astng, and fixes a lot of bugs too, adding some new functionalities: #5564: Parameters with leading _ shouldn't count as local variables #18860: warn on assert( a, b ?) #9776: warning if return or break inside a finally #9982: specific message for NotImplemented exception For a full list, check http://www.logilab.org/project/pylint/0.20.0 We would like to thank all people who contributed to this release, especially PYLINT : * Colin Moris' patch closed #9263: no W0613 for __init__ (method does not use all of its arguments) * Johnson Fletcher implemented #18860, new W0199 message on assert (a, b) * Daniel Harding, Jonathan Hartley and Pierre Rouleau solved the windows batch files problems. * Chmouel Boudjnah solved #19339: pylint.el : non existing py-mod-map ASTNG : * Edward K. Ream / Tom Fleck patch closes #19641 (maximum recursion depth exceeded) . * Winfried Plapper pointed out and fixed bugs in astng.nodes_as_string . Also, we would thank all people who found new bugs, added interesting tickets and helped with their suggestions to improve pylint and keep the project alive. -- Emile Anclin emile.anc...@logilab.fr http://www.logilab.fr/ http://www.logilab.org/ Informatique scientifique et gestion de connaissances -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
pylint 0.17.0 and astng 0.18.0 release
Hello, we are glad to announce the release of pylint 0.17.0 http://www.logilab.org/project/pylint/0.17.0 which is based on a major refactoring of astng (0.18.0) http://www.logilab.org/project/logilab-astng/0.18.0 . For python 2.5, pylint will now use python's _ast module which is much faster than the older compiler.ast module. See the ChangeLog files for more detailed information and our blogentry http://www.logilab.org/blogentry/8554 explaining how we support both compiler and _ast. -- Emile Anclin emile.anc...@logilab.fr http://www.logilab.fr/ http://www.logilab.org/ Informatique scientifique et gestion de connaissances -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
pylint 0.17.0 and astng 0.18.0 release
Hello, we are glad to announce the release of pylint 0.17.0 http://www.logilab.org/project/pylint/0.17.0 which is based on a major refactoring of astng (0.18.0) http://www.logilab.org/project/logilab-astng/0.18.0 . For python 2.5, pylint will now use python's _ast module which is much faster than the older compiler.ast module. See the ChangeLog files for more detailed information and our blogentry http://www.logilab.org/blogentry/8554 explaining how we support both compiler and _ast. -- Emile Anclin emile.anc...@logilab.fr http://www.logilab.fr/ http://www.logilab.org/ Informatique scientifique et gestion de connaissances -- http://mail.python.org/mailman/listinfo/python-list