uioziaremwpl at spammotel.com
Fri Jun 29 21:30:53 CEST 2001
On Fri, 29 Jun 2001, Roman Suzi wrote:
> Generators are necessary to drop memory usage while leaving
> existing usage of functions the same. And I think after
> generator's introduction, in things like:
> for line in file.readlines():
> people will _expect_ generators to be used and will look at
> the source to check it.
Hopefully, people will NOT expect this to be a generator. If
file.readlines() would be a generator you could not get a list of all
lines of a file with
lines = file.readlines()
> So, I can't see how all these advanced features could
> harm anybody's ability to read code!
More information about the Python-list