Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; '(at': 0.03; 'exception': 0.03; 'subject:command': 0.09; 'anyway': 0.11; 'deleted,': 0.16; 'relevance': 0.16; 'wrote:': 0.17; 'pointer': 0.17; 'python?': 0.20; 'raise': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'record': 0.28; '(possibly': 0.29; 'that.': 0.30; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'options:': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'next': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'jul': 0.65; 'furman': 0.84; 'seventh': 0.84; 'to:name:python': 0.84; 'ethan': 0.91; 'subject:records': 0.91 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=Gk6tDdgQhHxh/uHfGFS/Ku7z7rEO8oXMc9h/pyvGvLI=; b=etQ4wmseDDVEMTTOwJg7nxGT22aDvGpwR/quyRomNI5C8gltA0BpogwwuzTL8d2rEl A7iqQavf0W/onWJsdxAY3kYdLsVZrD/cdbZfUi+i13cHfp5Jj9jcIeOtZd0eOwt2l+qE 1DP09g9u7dUtEa1m+caZmEDWXzaoNpM/FOVnk/KCU6Q1nfrMv0acn9Kd8fQOUvZ9SbA3 APScMk3RrNsiucD9CsaXUqUMXQbT9hYykfs7NQO/uVfO3KiiOGrKHyZSfE8rqc74xACE dCsQt5fw5j/ujBEoIvjowO162Dh59hCD7x9zXSnund1pJkmqRCBA0/NXGZLhLb2YeKf1 xGQw== MIME-Version: 1.0 In-Reply-To: <5005EDC0.6050608@stoneleaf.us> References: <5005EDC0.6050608@stoneleaf.us> From: Ian Kelly Date: Tue, 17 Jul 2012 17:50:20 -0600 Subject: Re: Foxpro goto command and deleted records To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342569053 news.xs4all.nl 6961 [2001:888:2000:d::a6]:52758 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25546 On Tue, Jul 17, 2012 at 4:57 PM, Ethan Furman wrote: > In Foxpro if you do a > > GOTO 7 > > with deleted off and record 7 is deleted, the record pointer doesn't > move (at least in version 6). > > I don't like that. > > I see four other options: > > 0) don't move the pointer (listed for completeness) > 1) go to that record anyway > 2) go to the next undeleted record > 3) go to the seventh undeleted record (possibly the least practical) > 4) raise an exception > > Any opinions? Relevance to Python?