diff options
author | Barry Warsaw <barry@python.org> | 2002-08-06 17:01:51 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-08-06 17:01:51 (GMT) |
commit | d79f683772aa2222e4189f394fe7086d77b201c5 (patch) | |
tree | ffc4d96d5f3f3b0adacdf2c0d78b506bb317f177 /Misc | |
parent | 0fc01865f3a71f84484b0424d7e8952e35855bc7 (diff) | |
download | cpython-d79f683772aa2222e4189f394fe7086d77b201c5.zip cpython-d79f683772aa2222e4189f394fe7086d77b201c5.tar.gz cpython-d79f683772aa2222e4189f394fe7086d77b201c5.tar.bz2 |
Describe new "str1 in str2" behavior.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |