Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'api.': 0.04; 'subject:file': 0.07; 'behave': 0.09; 'sep': 0.09; 'subject:python': 0.11; 'language': 0.14; '11:32': 0.16; '24,': 0.16; 'immutable,': 0.16; 'int.': 0.16; 'subject:API': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'bytes': 0.17; 'pointer': 0.17; 'specifies': 0.17; 'equivalent': 0.20; 'supposed': 0.21; 'int,': 0.22; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'mind,': 0.29; 'point': 0.31; 'file': 0.32; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'thomas': 0.62; 'special': 0.73; 'absolutely': 0.84; 'rachel': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Somx1oDK0ysg2q6wl5TiVKhkwcj+476h/B+aH3tCaP8=; b=XftyScQjJVmkGuRwJUjXWzA8KpBGQK+6eqDv6jJrzy57RevcFfeu/8mIkRs226II4u EX4cWzLtu4ITEbfMcSBEuy+vgAQ0E9vY1o4Yt/F73uk5rRoYDi8qHqRkl66Y9Aaqfszd TDWpa3LPbP7R8pnXtHt8/uVL1RZ4VtYNcNRXAqFNidIAxO8eWDows2JpQcRt24XC4zIK kadDBP8WLz0FFz+AaZ8cRl3U8AMqPSxrD7XFHZ280V8Kp9YXkW3XhDB7On13KD/vxSV/ 68D85LhMV22EmZC+yUBVsLK8ma731Q5Vvq+bQjLS5SrGQ8dgETtqFOj/KgyTSeSf5VY5 JiGQ== MIME-Version: 1.0 In-Reply-To: References: <0ec1fe2e-890c-4e25-8047-4cb8bee0aa95@googlegroups.com> <5060D55C.3000407@davea.name> From: Ian Kelly Date: Tue, 25 Sep 2012 03:32:54 -0600 Subject: Re: python file API To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348565607 news.xs4all.nl 6917 [2001:888:2000:d::a6]:50777 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30053 On Mon, Sep 24, 2012 at 11:32 PM, Thomas Rachel wrote: > Am 25.09.2012 00:37 schrieb Ian Kelly: >> Since ints are immutable, the language specifies that it should be the >> equivalent of "file.pos = file.pos - 100", so it should set the file >> pointer to 68 bytes before EOF. > > > But this is not a "real int", it has a special use. So I don't think it is > absolutely required to behave like an int. The point of the proposal was to simplify the API. With that in mind, if it's supposed to look like an int, then it should *be* an int.