This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Transformation of "string.find('asd', 'sd')" to Python 3 using 2to3
Type: Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Fixers find, rfind, etc in 'string' module
View: 2899
Assigned To: Nosy List: xtreak, ניסן בכר
Priority: normal Keywords:

Created on 2019-12-31 13:32 by ניסן בכר, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg359115 - (view) Author: ניסן בכר (ניסן בכר) Date: 2019-12-31 13:32
When using the following code to run using python 2.x, it works:

import string
string.find("asd", "sd")

But this method is deprecated in python 3.x

When using "2to3" tool to convert, it doesn't convert it successfully.
msg359116 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-12-31 14:12
Seems to be a duplicate of issue2899
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83353
2019-12-31 16:49:19serhiy.storchakasetstatus: open -> closed
superseder: Fixers find, rfind, etc in 'string' module
resolution: duplicate
stage: resolved
2019-12-31 14:12:48xtreaksetnosy: + xtreak
messages: + msg359116
2019-12-31 14:09:52xtreaksettitle: Translation of "string.find('asd', 'sd')" doesn't work -> Transformation of "string.find('asd', 'sd')" to Python 3 using 2to3
2019-12-31 13:32:58ניסן בכרcreate