[Python-Dev] Re: Use for enumerate (original) (raw)

Ben Wolfson wolfson@midway.uchicago.edu
Fri, 26 Apr 2002 22:27:12 -0500 (CDT)


On Fri, 26 Apr 2002, Ben Wolfson wrote:

(I'm not subscribed so this won't thread right, but oh well)

This doesn't preserve the same semantics as the original, in that it always reads the entire file, but it is awfully short:

That is, it always reads it if it opens it at all. It preserves the semantics of not opening the file if lineno < 1.

-- BTR
YOU HEAR ME, BEN WOLFSON?!? YOUR SUPERCILIOUS CONTEMPT POWERS CANNOT WITHSTAND THE POWER OF MY BOORISH DIMWIT RAY!!!! -- revjack