Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30106
| References | (1 earlier) <mailman.1217.1348523382.27098.python-list@python.org> <d5v7j9-qnr.ln1@satorlaser.homedns.org> <60q268tnj9mqhvdtlehv59ob9bvpf8lgjr@invalid.netcom.com> <CAHVvXxT2YU2rUPRJNaOa3N4z3MAQkxJPQ5oMf01bvn6+7E8PXQ@mail.gmail.com> <5cl3685bv3a2gidce2fn64grjtk9ch7kp5@invalid.netcom.com> |
|---|---|
| Date | 2012-09-26 02:12 +1000 |
| Subject | Re: python file API |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1351.1348589538.27098.python-list@python.org> (permalink) |
On Wed, Sep 26, 2012 at 2:07 AM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > f.pos += delta > > would be a "seek.set" and with a naive driver might trigger a rewind to > the start of the tape followed by a seek to the absolute position, > whereas the seek from current location would only move the tape by the > specified amount... But a smart driver should always optimize the absolute seek to a relative seek, unless there's a hard difference between them. After all, the standard "read-ahead" technique is going to do an absolute seek: opaque_value = f.tell() f.read(blah blah blah) f.seek(opaque_value) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python file API zipher <dreamingforward@gmail.com> - 2012-09-24 14:35 -0700
Re: python file API Dave Angel <d@davea.name> - 2012-09-24 17:49 -0400
Re: python file API Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-09-25 08:22 +0200
Re: python file API Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 04:19 -0400
Re: python file API Grant Edwards <invalid@invalid.invalid> - 2012-09-25 14:07 +0000
Re: python file API Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 12:07 -0400
Re: python file API Chris Angelico <rosuav@gmail.com> - 2012-09-26 02:12 +1000
Re: python file API Chris Kaynor <ckaynor@zindagigames.com> - 2012-09-24 14:58 -0700
Re: python file API Chris Angelico <rosuav@gmail.com> - 2012-09-25 08:14 +1000
Re: python file API zipher <dreamingforward@gmail.com> - 2012-09-24 15:36 -0700
Re: python file API Mark Adam <dreamingforward@gmail.com> - 2012-09-24 21:32 -0500
Re: python file API Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 08:27 +0100
Re: python file API Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 11:51 +0100
Re: python file API zipher <dreamingforward@gmail.com> - 2012-09-24 15:36 -0700
Re: python file API Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 02:28 +0000
Re: python file API Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-25 07:25 +0200
Re: python file API Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 07:28 +0000
Re: python file API Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-25 21:40 +0200
Re: python file API Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 01:33 +0000
Re: python file API Dave Angel <d@davea.name> - 2012-09-24 18:36 -0400
Re: python file API Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-24 16:37 -0600
Re: python file API Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-25 07:32 +0200
Re: python file API Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 04:13 -0400
Re: python file API Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-25 11:53 +0200
Re: python file API Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-25 03:32 -0600
Re: python file API Chris Angelico <rosuav@gmail.com> - 2012-09-25 08:57 +1000
Re: python file API Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 00:12 +0100
Re: python file API Chris Kaynor <ckaynor@zindagigames.com> - 2012-09-24 16:14 -0700
Re: python file API Ramchandra Apte <maniandram01@gmail.com> - 2012-09-30 05:50 -0700
csiph-web