This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author relm
Recipients
Date 2004-06-07.09:45:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
You can test for the first line of a file with 
fileinput.isfirstline(), but there is no corresponding 
fileinput.islastline() to test for the last line of a file.

Note that there is already an unapplied patch for this at 
request ID 776100, but it is faulty in that it only tests 
for end of buffer and not end of file.

I was not sure how to append this patch to the existing 
request, so have started a new one.  Hope this is okay.

This patch also includes documentation and test 
updates.
History
Date User Action Args
2007-08-23 15:38:03adminlinkissue968063 messages
2007-08-23 15:38:03admincreate