We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Error while extracting method that contains augmented assignment to subscriptable (dict, list etc.) inside try..except.
To Reproduce Steps to reproduce the behavior:
any_subscriptable = {0: 0} try: any_subscriptable[0] += 1 except: pass
Extracting method.
def extracted(): any_subscriptable = {0: 0} try: any_subscriptable[0] += 1 except: pass extracted()
self = <rope.refactor.extract._FunctionInformationCollector object at ...>, node = <ast.AugAssign object at ...> def _AugAssign(self, node): ast.walk(node.value, self) > self._read_variable(node.target.id, node.target.lineno) E AttributeError: 'Subscript' object has no attribute 'id'
Editor information (please complete the following information):
The text was updated successfully, but these errors were encountered:
test(extract-method) recreating bug: Unable do extract method with tr…
cddc9e2
…y and subscriptable refs python-rope#459
fix(extract-method): Add support for augmented assignments to subscri…
fad37df
…ptable inside try..except block fixes python-rope#459
docs(CHANGELOG): Information on bug python-rope#459
9d780eb
Successfully merging a pull request may close this issue.
Describe the bug
Error while extracting method that contains augmented assignment to subscriptable (dict, list etc.) inside try..except.
To Reproduce
Steps to reproduce the behavior:
Extracting method.
Editor information (please complete the following information):
The text was updated successfully, but these errors were encountered: