<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Tue, 2011-07-19 at 23:51 -0700, Larry Bugbee wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
> Steven D'Aprano wrote:
> In my wishlist for Python 4000 I have:

and sooner would be nicer.

> * list.index renamed to list.find
> * str.find and list.find return None if the argument is not found

+1

...and forget throwing an exception if not found.  None is much preferred.
</PRE>
</BLOCKQUOTE>
<BR>
This is my preference also.<BR>
<BR>
I also prefer that the ValueError exception not be overused in the library.<BR>
<BR>
A good test might be how to write a function that finds a substring in a substring from a larger string.  <BR>
<BR>
Cheers,<BR>
    Ron<BR>
<BR>
</BODY>
</HTML>