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

Seems that 2to3 doesn't support issue with Exception object (A.9) #27

Open
ilya-palachev opened this issue Feb 17, 2020 · 1 comment
Open

Comments

@ilya-palachev
Copy link

ilya-palachev commented Feb 17, 2020

Section A.9 says that the issue with Exception objects that are not iterable and indexable is supported by 2to3.
But it seems that it doesn't. I tried the code presented as the example:

e = Exception('arg1', 'arg2')
e[1]

and found that it is not converted by 2to3. This fix is not mentioned neither in documentation, nor in the code of fix_except fixer.
Maybe am I missing something?

@ilya-palachev
Copy link
Author

Found one more case: in A.22 it's said that there is no support parameter unpacking in 2to3. But there is one: https://docs.python.org/2/library/2to3.html#2to3fixer-tuple_params

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

No branches or pull requests

1 participant