Message121051
>What is the best way to pass around source code?
> - file-like objects, line iterators, readline-like function?
Line iterator (list of lines) as returned by open().readlines.
Memory should not be an issue. Read disk once and close.
with open('file', ...) as f:
src = f.readlines() |
|
Date |
User |
Action |
Args |
2010-11-12 17:54:17 | terry.reedy | set | recipients:
+ terry.reedy, brett.cannon, belopolsky, vstinner, eli.bendersky |
2010-11-12 17:54:17 | terry.reedy | set | messageid: <1289584457.06.0.80240927502.issue10342@psf.upfronthosting.co.za> |
2010-11-12 17:54:02 | terry.reedy | link | issue10342 messages |
2010-11-12 17:54:02 | terry.reedy | create | |
|