Code block literals

Vis Mike visionary25 at _nospam_hotmail.com
Thu Oct 9 14:25:13 EDT 2003


[snip]

Something like this seems more logical to me:

for line in file('input.txt').lines:
    do_something_with(line)

for byte in file('input.txt').bytes:
    do_something_with(byte)

Is it possible?

Mike






More information about the Python-list mailing list