Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.102 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.82; '*S*': 0.03; 'doing?': 0.09; 'cc:addr :python-list': 0.11; '(without': 0.16; 'cc:name:python list': 0.16; 'illustrates': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'load': 0.23; 'parse': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'bunch': 0.31; 'lists': 0.32; 'received:google.com': 0.35; 'really': 0.36; 'url:org': 0.36; 'how': 0.40; "you're": 0.61; 'show': 0.63; 'dont': 0.67; 'oscar': 0.84; 'mean.': 0.91; '2013': 0.98 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 :cc:content-type; bh=Yal8RHJnGLruigzh6Qa+IJZOs1nClsZOF7UF8mH1HaQ=; b=wI7ejklEFhi52IUW3CpXXcV/rx7JPljR5ZlfuJNscv19rc2frFZJY+l/q+lLB4VLK0 lKsVjIweBlQugep+SiLrS5aRaCTEt/DDvJPvytGJEfpGS9dJAJvT+mRYA46V9f3pr+Gv bWlI/JN52ometpGgNeeJ6/Oehzzv23Cxsjxq6ZIEI0Big7zTiS4CW4brDwvSM94lmTbT So5JOrQmyC2HDyMuqOsGuUZVpR/CDDW8OeQMbF5Z940ji/o/ZfdRdL/em3Y81teFtjwv XGDJqcJXIVnqNmi+BLkfxkC8ZB/sm6icaGKfWVY+cQ30QK9gSISjT2+ZDj88VD0ZCPM5 ltfg== X-Received: by 10.52.230.102 with SMTP id sx6mr18720059vdc.15.1379945449641; Mon, 23 Sep 2013 07:10:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <9b5d915b-3750-43ab-9691-1b1445332c43@googlegroups.com> References: <9b5d915b-3750-43ab-9691-1b1445332c43@googlegroups.com> From: Oscar Benjamin Date: Mon, 23 Sep 2013 15:10:29 +0100 Subject: Re: parse list recurisively To: andypu@zoho.com Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379945457 news.xs4all.nl 15952 [2001:888:2000:d::a6]:54037 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54640 On 23 September 2013 13:53, wrote: > Hello, > > i use a load of lists and often i dont know how deep it is, how can i parse that lists elegantly (without a bunch of for loops) I don't really understand what you mean. Can you show some code that illustrates what you're doing? http://sscce.org/ Oscar