Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'plenty': 0.04; 'am,': 0.14; 'wrote:': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nodes': 0.16; 'pointers.': 0.16; 'russ': 0.16; 'structures,': 0.16; 'sure,': 0.16; 'trees': 0.16; 'entries': 0.16; 'have,': 0.17; 'tree': 0.19; 'header:In-Reply-To:1': 0.21; 'thu,': 0.22; 'received:209.85.210.174': 0.23; 'received:mail- iy0-f174.google.com': 0.23; 'structure': 0.23; "doesn't": 0.25; 'message-id:@mail.gmail.com': 0.28; 'bit': 0.30; "won't": 0.30; 'parent': 0.30; 'to:addr:python-list': 0.33; 'things': 0.33; "i've": 0.33; 'file': 0.34; 'there': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'unless': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'chain': 0.66; 'node': 0.84; 'subject:English': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=f2rlwPiPJrlcLulC5lTfXaznMisETntQAUPITyh/qKc=; b=onntb5ivlhxSV7JHqpJMU4oxfL79VNqc7MJAGv57MMdXQJjZacri3CTQxmBKOV310Z vwCK7N7dYwfx5DEA1AoY7PciV+XNVIR5KeXSUYOvYCAN+zlyxJ8dSYcq7fGGrxrr8r+Q GY8RZ79iPWdydwleeCQH2X5aq5Nk2YB3PUTF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=timLQGXK5RXjcax3+FhG/ayUNBNFGNwQf+gCwlv4JAT+OYvMjhKYY/+88+X8cF9yt4 8SmMWWUYGwNbI2RYYFF/TmFUKJFNk5d8issVB31JNF5pejfgoB2G8spySzW2h331WJLV 9eSeKYfJdm8QKhlRkUFOihQKUAouJEMzIK5n0= MIME-Version: 1.0 In-Reply-To: References: <87aaekoab7.fsf@kuiper.lan.informatimago.com> Date: Thu, 19 May 2011 04:12:49 +1000 Subject: Re: English Idiom in Unix: Directory Recursively From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 14 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305742372 news.xs4all.nl 49181 [::ffff:82.94.164.166]:36652 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5718 On Thu, May 19, 2011 at 2:16 AM, Thomas A. Russ wrote: > Well, unless you have a tree with backpointers, you have to keep the > entire parent chain of nodes visited. =A0Otherwise, you won't be able to > find the parent node when you need to backtrack. =A0A standard tree > representation has only directional links. Sure, but there are plenty of trees that do have parent pointers. Widgets on every system I've tinkered with always have, and in a directory structure that doesn't allow files to be in multiple places, it's not hard (look at the . and .. entries in a directory). Of course, file systems are not idealized tree structures, so things will be a bit more complicated. ChrisA