[Python-Dev] Remove str.find in 3.0?
raymond.hettinger at verizon.net
Sat Aug 27 10:28:28 CEST 2005
> For another example, file.read() returns an empty string at EOF.
When my turn comes for making 3.0 proposals, I'm going to recommend
nixing the "empty string at EOF" API. That is a carry-over from C that
made some sense before there were iterators. Now, we have the option of
introducing much cleaner iterator versions of these methods that use
compact, fast, and readable for-loops instead of multi-statement
More information about the Python-Dev