Message46132
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. |
|
Date |
User |
Action |
Args |
2007-08-23 15:38:03 | admin | link | issue968063 messages |
2007-08-23 15:38:03 | admin | create | |
|