In Python 2, file objects had an xreadlines() method which returned an iterator that would read the file one line at a time. In Python 3, the xreadlines() method no longer e
how about this (generator expression):
>>> f = open("r2h_jvs") >>> h = (x for x in f) >>> type(h) `