python file API

Grant Edwards invalid at invalid.invalid
Tue Sep 25 10:07:41 EDT 2012


On 2012-09-25, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Tue, 25 Sep 2012 08:22:05 +0200, Ulrich Eckhardt
><ulrich.eckhardt at dominolaser.com> declaimed the following in
> gmane.comp.python.general:
>
>> Am 24.09.2012 23:49, schrieb Dave Angel:
>> > 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.
>> 
>> Negative indices.
>>
>
> 	Which still doesn't handle the third seek mode -- relative to
> current position.

 fileobj.pos += <whatever>

-- 
Grant Edwards               grant.b.edwards        Yow! Am I in GRADUATE
                                  at               SCHOOL yet?
                              gmail.com            



More information about the Python-list mailing list