File Polling (Rereading)

Diez B. Roggisch deets.nospaaam at
Thu Oct 21 14:49:22 CEST 2004

> Good to hear! i only need the changes! do you have code examples?

This is a misunderstanding: I didn't mean "the changes". What you can get by


is the timestamp of the last modification - so you can then skip rereading
the file if there has been no modification after the last time you read the

But you _can't_ only read what has been changed in the file - there is no
such thing neither in python, nor the underlying OSses (which is the reason
for python not having such a functionality)

I suggest you tell us more about what you actually want to accomplish, then
we might be able to offer better advice.


More information about the Python-list mailing list