Warning about "for line in file:"
Neil Schemenauer
nas at python.ca
Wed Feb 20 17:33:07 EST 2002
More information about the Python-list mailing list
Wed Feb 20 17:33:07 EST 2002
- Previous message (by thread): Warning about "for line in file:"
- Next message (by thread): Warning about "for line in file:"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jason Orendorff wrote: > I agree! This could be improved by having file.__iter__() > always return the same object. But that doesn't solve the problem > in full. Perhaps the buffer should be attached to the file object itself instead of to the iterator. read() and readline() could then be changed to use the buffer if it exists. Neil
- Previous message (by thread): Warning about "for line in file:"
- Next message (by thread): Warning about "for line in file:"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list