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
Fixers find, rfind, etc in 'string' module #47148
Comments
Functions like find() rfind() index() rindex() has been removed in Eg. fix Thank you! |
I expect the answer will be that 2to3 cannot know what sort of object It does seem like 2to3 could assume that you write code with honorable Unfortunately, code as follows is probably frequent, so we aren't likely def f(list):
'''
argument should be a list.
"list" in this scope no longer names __builtins__.list
''' |
2to3 could handle it, but it would be a lot of work for something |
I think the point is to get a message from 2to3 about possible use of |
Maybe 2to3 could get a --pedantic or even an --annoying option? I agree |
I disagree. That is the role of -3 warnings. Static analysis is too |
I guess this will not happen then. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: