Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: How To Create A Endles List Of Lists In Python...??? Date: Sat, 21 Nov 2015 00:09:05 +1100 Lines: 13 Message-ID: References: <564F1AC0.5040106@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de xA9w/gFHvsqG0dK5kuZR9AsGWjrhjBTKgoDMQGd1ZfCg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; '21,': 0.07; 'list...': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integer.': 0.16; 'iterable': 0.16; 'iterated': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'all,': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'for?': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'useful': 0.33; 'indexed': 0.33; 'subject:List': 0.33; 'lists': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'question,': 0.35; 'but': 0.36; 'needed': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'received:209': 0.38; 'end': 0.39; 'your': 0.60; 'here.': 0.62; 'chrisa': 0.84; 'nagy': 0.84; 'to:none': 0.91; 'subject:Lists': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=q1OflmMwH3nAqSsFCTTABXnNdY79nBMHP8Lc32dqZFo=; b=ZD59Qqio3JTx+W6yJqSsgvkLtXaTglKYX2mSkzfSmKQiBYgXQxCq6RMJIW27Mi5v/6 ATXcivER2QGPE//YYvBPoMJh/tLCZmZnOIrd1XUZUbmFs8t5AEuaT+BOT006pE3uXcTk V/zr2RHw8mSNTIO9vuer2wiK/TSvhO1gZ0LPo7SZdCuiIdBuiajzePRjXSSvoX7FHlQH xwzBhF1Eu4wHyMJhAzmrPnJ4Mkfi3vNApHbnBhlGQTB53LxfXTWRCTzC9bG0uyN5OGdJ LfWSAjvHeNcT2X0Qdjz7H+hb+BVNyK128+y3GCUvFzMzjIZ2SqJa6YFA3jyHo5ftRsBO sjeA== X-Received: by 10.107.16.84 with SMTP id y81mr12789743ioi.19.1448024945976; Fri, 20 Nov 2015 05:09:05 -0800 (PST) In-Reply-To: <564F1AC0.5040106@shopzeus.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99145 On Sat, Nov 21, 2015 at 12:06 AM, Nagy L=C3=A1szl=C3=B3 Zsolt wrote: >> Sorry For Bad Question, But I need List Of Lists That I Can >> Acces Horyzontaly, Not In The Deep(But This IS Not All, >> I End That Evey List In List Of Lists Can Be A List... > It is not possible to do it with a native list. But you can write your > own iterable that can be iterated forever, and indexed with an integer. > > But before you do that: what is this needed for? My crystal ball suggests that defaultdict(list) might be useful here. ChrisA