Giter Site home page Giter Site logo

Comments (3)

pylint-bot avatar pylint-bot commented on July 20, 2024

Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):


I can reproduce using twisted 11.1 and 13.0 with python 2.7.3 / pylint 0.28 / astng 0.24.3, though pyreverse has to be launched on the whole twisted, not only on the tktree module (which seems analyzed fine during my tests)

from pylint.

pylint-bot avatar pylint-bot commented on July 20, 2024

Original comment by Emile Anclin (BitBucket: anclin, GitHub: @Anclin?):


It's an astroid bug that was not too easy to track since it appears only if the project is complicated enough to go repeatedly into the scoped_nodes.Class.instance_attr method, which is called only in the Instance class ; here is the diff :

#!diff


--- a/scoped_nodes.py   Wed May 21 18:29:15 2014 +0300
+++ b/scoped_nodes.py   Thu May 29 14:31:33 2014 +0200
@@ -941,7 +941,8 @@
           if no attribute with this name has been find in this class or
           its parent classes
         """
-        values = self.instance_attrs.get(name, [])
+        # ! don't modify the self.instance_attrs !
+        values = list(self.instance_attrs.get(name, []))
         # get all values from parents
         for class_node in self.instance_attr_ancestors(name, context):
             values += class_node.instance_attrs[name]

For smaller parts of twisted, the lists that are the values of instance_attrs get longer and longer, and for a bigger part it finally generates the infinite loop...

from pylint.

pylint-bot avatar pylint-bot commented on July 20, 2024

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):


This was fixed in astroid with https://bitbucket.org/logilab/astroid/commits/16d284f2bfd9b507c1606320be40b41d2d243f97.

from pylint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.