Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29946
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dreamingforward@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'attribute': 0.05; 'subject:file': 0.07; 'python': 0.09; 'abstraction': 0.09; 'assigning': 0.09; 'interpreter,': 0.09; 'to:addr:comp.lang.python': 0.09; 'underlying': 0.09; 'cc:addr :python-list': 0.10; 'programmer': 0.11; 'subject:python': 0.11; 'bounds': 0.16; 'subject:API': 0.16; 'trap': 0.16; 'pointer': 0.17; 'exceptions': 0.22; 'pos': 0.22; 'cc:2**0': 0.23; 'raise': 0.24; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'actual': 0.28; 'file': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'possible': 0.37; 'beyond': 0.37; 'maintaining': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'think': 0.40; 'your': 0.60; 'link': 0.60; 'between': 0.63; 'risk': 0.66 |
| Newsgroups | comp.lang.python |
| Date | Mon, 24 Sep 2012 15:36:20 -0700 (PDT) |
| In-Reply-To | <mailman.1222.1348524844.27098.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=71.39.56.98; posting-account=_mq9AwoAAADE_DU6vx1SR9Jw8c-yNCiv |
| References | <0ec1fe2e-890c-4e25-8047-4cb8bee0aa95@googlegroups.com> <5060D55C.3000407@davea.name> <mailman.1222.1348524844.27098.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 71.39.56.98 |
| MIME-Version | 1.0 |
| Subject | Re: python file API |
| From | zipher <dreamingforward@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.1228.1348526190.27098.python-list@python.org> (permalink) |
| Lines | 10 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348526190 news.xs4all.nl 6850 [2001:888:2000:d::a6]:37132 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29946 |
Show key headers only | View raw
You raise a valid point: that by abstracting the file pointer into a position attribute you risk "de-coupling" the conceptual link between the underlying file and your abstraction in the python interpreter, but I think the programmer can take responsibility for maintaining the abstraction. The key possible fault will be whether you can trap (OS-level) exceptions when assigning to the pos attribute beyond the bounds of the actual file on the system... markj
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