Git Product home page Git Product logo

Comments (10)

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by BitBucket: Abgan, GitHub: @abgan?:


Forgot to login before creating issue - anyway, it was me who created this issue so you can contact me for more details if required.

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by Christophe Simonis (BitBucket: KangOl, GitHub: @KangOl?):


Duplicate of #38 ?

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by BitBucket: Abgan, GitHub: @abgan?:


Tested it with latest sources (commit: 434aad4b9b24f993a73a9ccf0e21866458e9a4be) and still receiving the same error, so I don't think it's been fixed back on 24th of July.

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by BitBucket: bradley_rhodes:


I'm getting the same error with the latest commit (434aad4b9b24) with the following snippet:

#!python

import inspect
def dummy_func():
    pass
argspec = inspect.getargspec(dummy_func)
print argspec.args

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by BitBucket: bradley_rhodes:


Update: Tested on both OSX Python 2.7.2 and Ubuntu 2.7.3; both fail.

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by Chris Rebert (BitBucket: cvrebert, GitHub: @cvrebert?):


Same issue in astroid tracker: https://bitbucket.org/logilab/astroid/issue/3/error-after-upgrade-to-pylint-10

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

Original comment by Russell MacKenzie (BitBucket: discoguy77):


Here's a minimal test case:

Make the file namedtuple.py:

#!python

import collections
Point = collections.namedtuple('Point', ['x', 'y'])
p = Point(x=1.0, y=2.0)
print "Area: %.1f" % (p.x * p.y,)

Then, run:

#!bash

bash$> pylint namedtuple.py

The output:

#!bash

Traceback (most recent call last):
  File "/g8/software/config/python/pylint/lint.py", line 1065, in <module>
    Run(sys.argv[1:])
  File "/g8/software/config/python/pylint/lint.py", line 1010, in __init__
    linter.check(args)
  File "/g8/software/config/python/pylint/lint.py", line 599, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "/g8/software/config/python/pylint/lint.py", line 685, in check_astroid_module
    walker.walk(astroid)
  File "/g8/software/config/python/pylint/utils.py", line 662, in walk
    self.walk(child)
  File "/g8/software/config/python/pylint/utils.py", line 662, in walk
    self.walk(child)
  File "/g8/software/config/python/pylint/utils.py", line 662, in walk
    self.walk(child)
  File "/g8/software/config/python/pylint/utils.py", line 662, in walk
    self.walk(child)
  File "/g8/software/config/python/pylint/utils.py", line 662, in walk
    self.walk(child)
  File "/g8/software/config/python/pylint/utils.py", line 659, in walk
    cb(astroid)
  File "/g8/software/config/python/pylint/checkers/typecheck.py", line 174, in visit_getattr
    if is_super(owner) or getattr(owner, 'type', None) == 'metaclass':
  File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/bases.py", line 51, in __getattr__
    return getattr(self._proxied, name)
  File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/scoped_nodes.py", line 680, in _class_type
    for base in klass.ancestors(recurs=False):
  File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/scoped_nodes.py", line 801, in ancestors
    for baseobj in stmt.infer(context):
TypeError: unbound method infer() must be called with Tuple instance as first argument (got InferenceContext instance instead)

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

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


should be fixed on astroid tip: https://bitbucket.org/logilab/astroid/commits/5ed6266cab789bc89d882444c938f03953491496

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

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


fix to be released in astroid 1.0.1

from pylint.

pylint-bot avatar pylint-bot commented on May 24, 2024

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


Issue #84 was marked as a duplicate of this issue.

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.