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

Add a context for certain nodes, similar to the builtin module ast #267

Open
pylint-bot opened this issue Nov 26, 2015 · 0 comments
Open

Comments

@pylint-bot
Copy link
Owner

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore)


There are a couple of nodes in the builtin module ast which provide a .ctx member, useful for determining in what context these nodes occurred, with types such as Store, for instance for x[1] = 2, Del for del x[1] and Load for the rest of them. Might be useful for pylint for disambiguating between a __getitem__ call or a __setitem__ call.


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

No branches or pull requests

1 participant