Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function 'f' has no '__code__' member (no-member) #213

Closed
pylint-bot opened this issue Apr 25, 2014 · 3 comments
Closed

Function 'f' has no '__code__' member (no-member) #213

pylint-bot opened this issue Apr 25, 2014 · 3 comments
Labels

Comments

@pylint-bot
Copy link

Originally reported by: Antony Lee (BitBucket: anntzer, GitHub: @anntzer?)


The following snippet triggers the spurious error given in the title.

#!python

def f():
    pass
print(f.__code__)

Other attributes, e.g. __closure__, trigger the same error.


@pylint-bot
Copy link
Author

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


this is a bug for astroid, and there are already issue(s) about the same
problem (though they probably don't talk about the very same function
attributes)

@pylint-bot
Copy link
Author

Original comment by Kay Hayen (BitBucket: kayhayen, GitHub: @kayhayen?):


I just meant to report the same bug. I first noticed it on 1.1 and checked 1.2 just now.

@pylint-bot
Copy link
Author

Original comment by Torsten Marek (BitBucket: tmarek, GitHub: @tmarek?):


Duplicate of #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant