python file API

Chris Kaynor ckaynor at zindagigames.com
Mon Sep 24 17:58:46 EDT 2012


On Mon, Sep 24, 2012 at 2:49 PM, Dave Angel <d at davea.name> wrote:
>
> And what approach would you use for positioning relative to
> end-of-file?  That's currently done with an optional second parameter to
> seek() method.
>

I'm not advocating for or against the idea, but that could be handled
the same way indexing into lists can index relative to the end:
negative indices.



More information about the Python-list mailing list