[BangPypers] How to handle files efficiently in python

Senthil Kumaran orsenthil at gmail.com
Wed Mar 23 07:24:35 CET 2011


brijithp at gmail.com wrote:
> This a question asked by netApp
> 

At the end of the interview, you could have asked the interviewer
himself as what response he was looking for.

- subprocess based - use tail. I would go for this.
- file IO based. Seek to end of file and do a seek in the reverse
  direction based on a factor matching the size, and process and
  display. ( I found a good discussing on StackOverflow after writing
  this).

-- 
Senthil


More information about the BangPypers mailing list