[New-bugs-announce] [issue2899] Fixes find, rfind, etc in 'string' module

Haoyu Bai report at bugs.python.org
Sat May 17 14:30:17 CEST 2008


New submission from Haoyu Bai <divinekid at gmail.com>:

Functions like find() rfind() index() rindex() has been removed in
Python 3.0. So there should be a 2to3 fix for it.

Eg. fix
  if string.find(s, "hello") >= 0:
to
  if str.find(s, "hello") >= 0:

Thank you!

----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 66993
nosy: bhy, collinwinter
severity: normal
status: open
title: Fixes find, rfind, etc in 'string' module
type: feature request
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2899>
__________________________________


More information about the New-bugs-announce mailing list