From: Barry Warsaw Date: Tue, 6 Aug 2002 17:01:51 +0000 (+0000) Subject: Describe new "str1 in str2" behavior. X-Git-Tag: v2.3c1~4670 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d79f683772aa2222e4189f394fe7086d77b201c5;p=thirdparty%2FPython%2Fcpython.git Describe new "str1 in str2" behavior. --- diff --git a/Misc/NEWS b/Misc/NEWS index 3c5c8348207c..f3971617a471 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -6,6 +6,10 @@ Type/class unification and new-style classes Core and builtins +- Previously, "str1 in str2" required str1 to be a string of length 1. + This restriction has been relaxed to allow str1 to be a string of + any length. Thus "'el' in 'hello world'" returns True now. + - File objects are now their own iterators. For a file f, iter(f) now returns f (unless f is closed), and f.next() is similar to f.readline() when EOF is not reached; however, f.next() uses a