Earlier quoted context omitted.
(process(line) for line in open('giantfile.txt') if line.lstrip()[0] != '#') Is that line really using any new features in Python 3? The lazy evaluation there is in the file object and the generator expression, both of which have long been present in python2.
No, it wasn't. I added map(str.upper, xxx), now it does.
(process(line.upper()) for line in open('giantfile.txt') if line.lstrip()[0] != '#')