Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'method.': 0.05; 'indexing': 0.07; 'parameter': 0.07; 'subject:file': 0.07; 'received:mail-vc0-f174.google.com': 0.09; 'sep': 0.09; 'subject:python': 0.11; 'index': 0.13; '24,': 0.16; 'advocating': 0.16; 'subject:API': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'idea,': 0.29; 'optional': 0.29; 'received:209.85.220.174': 0.29; 'handled': 0.29; "i'm": 0.29; 'relative': 0.30; 'lists': 0.31; 'could': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'done': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'angel': 0.93 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=kete7xRXHdZfSSJ8lHCI/UqN0LD3CoLg86h/eaxIkbE=; b=Ril661rGgAuGAVed0rNXapdcKtLLOZS3w/TaTftBakQbHZ8+aW0LE0GekeSQVhE71Q lphuSyeuA+EM6AbYg19aHt8LT+5+28QFLyFRVVohJ7vfwzykmL8YnjltPdOTFwWUjWTi PvF1DA+ZGFXSm9Pi/rLB7TV5zyLXzh26lCWe8hgC59uye5P0TnjZEU3lT6imMuQTtwG6 irmuSqO28D+1hW+WnO9vxrhCn67FBoqZkcjTFKZTjm2gPmEyGqE+5/GB6lLU23T7iPL8 1FqlBqRdz5gzJ5bqVKRiIaevBS+citNMMsvNWCWTsyyQmF9XNA8akREKZbou3wPbm1UG Op1A== MIME-Version: 1.0 In-Reply-To: <5060D55C.3000407@davea.name> References: <0ec1fe2e-890c-4e25-8047-4cb8bee0aa95@googlegroups.com> <5060D55C.3000407@davea.name> From: Chris Kaynor Date: Mon, 24 Sep 2012 14:58:46 -0700 Subject: Re: python file API To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlCBoT4rltnsrAWKsRND1GDhO1IazNAY5cU7nlhsdntiXdn3J0qvFhdxn8A9dML5M6OzTru X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348523949 news.xs4all.nl 6974 [2001:888:2000:d::a6]:36589 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29937 On Mon, Sep 24, 2012 at 2:49 PM, Dave Angel 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.