A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-August/027374.html below:

[Python-Dev] Dafanging the find() gotcha

[Python-Dev] Dafanging the find() gotcha [Python-Dev] Dafanging the find() gotchaSteve Holden sholden@holdenweb.com
Mon, 5 Aug 2002 15:05:43 -0400
[Andrew Koenig]
> Eric> Raise an exception.  Definitely.  There is no reason to follow
> Eric> find() rigidly when the whole point is to have semantics
> Eric> different from find().  Besides, you're right to point out that
> Eric> changing this behavior could break existing code, and that is a
> Eric> big no-no.
>
> Changing the meaning of ('ab' in 'abc') might also break existing code.
>

True, but it does seem unlikely (though not impossible) that many are
relying on "ab" in "abc" raising an exception.

regards
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------







RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4