forked from pool/python-pylint
Accepting request 290987 from home:Nijel:branches:devel:languages:python
- Update to 1.4.3: * Remove three warnings: star-args, abstract-class-little-used, abstract-class-not-used. These warnings don't add any real value and they don't imply errors or problems in the code. * Added a new option for controlling the peephole optimizer in astroid. The option ``--optimize-ast`` will control the peephole optimizer, which is used to optimize a couple of AST subtrees. The current problem solved by the peephole optimizer is when multiple joined strings, with the addition operator, are encountered. If the numbers of such strings is high enough, Pylint will then fail with a maximum recursion depth exceeded error, due to its visitor architecture. The peephole just transforms such calls, if it can, into the final resulting string and this exhibit a problem, because the visit_binop method stops being called (in the optimized AST it will be a Const node). OBS-URL: https://build.opensuse.org/request/show/290987 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=61
This commit is contained in:
committed by
Git OBS Bridge
parent
d634419257
commit
e0299a12f8
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 16 12:22:48 UTC 2015 - mcihar@suse.cz
|
||||
|
||||
- Update to 1.4.3:
|
||||
* Remove three warnings: star-args, abstract-class-little-used,
|
||||
abstract-class-not-used. These warnings don't add any real value
|
||||
and they don't imply errors or problems in the code.
|
||||
* Added a new option for controlling the peephole optimizer in astroid.
|
||||
The option ``--optimize-ast`` will control the peephole optimizer,
|
||||
which is used to optimize a couple of AST subtrees. The current problem
|
||||
solved by the peephole optimizer is when multiple joined strings,
|
||||
with the addition operator, are encountered. If the numbers of such
|
||||
strings is high enough, Pylint will then fail with a maximum recursion
|
||||
depth exceeded error, due to its visitor architecture. The peephole
|
||||
just transforms such calls, if it can, into the final resulting string
|
||||
and this exhibit a problem, because the visit_binop method stops being
|
||||
called (in the optimized AST it will be a Const node).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 09:20:31 UTC 2015 - mcihar@suse.cz
|
||||
|
||||
|
Reference in New Issue
Block a user