Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99171

Re: How To Create A Endles List Of Lists In Python...???

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: How To Create A Endles List Of Lists In Python...???
Date Fri, 20 Nov 2015 17:14:21 -0000 (UTC)
Organization A noiseless patient Spider
Lines 20
Message-ID <n2nkdd$mns$2@dont-email.me> (permalink)
References <n2miu8$fl4$1@ls237.t-com.hr>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 20 Nov 2015 17:14:21 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="23292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ElPADWWHylwC52iMdL9aeXXjrvhS4CBo="
User-Agent Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2)
Cancel-Lock sha1:4zKUaezCWLlXMuMmXOwvz1IkI34=
Xref csiph.com comp.lang.python:99171

Show key headers only | View raw


On Fri, 20 Nov 2015 08:43:04 +0100, HKRSS wrote:

> Thanks In Advance, Robert...;)

Just keep appending child lists to parent list:

l = []

while True:
   l.append([])

Until you run out of memory

But I think that this answer although it appears accurate to the question 
is not a solution for anything useful, because it will just use all the 
memory up. So perhaps you need to express your question in a better 
manner.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How To Create A Endles List Of Lists In Python...??? "HKRSS" <hkrss@gmail.com> - 2015-11-20 08:43 +0100
  Re: How To Create A Endles List Of Lists In Python...??? "HKRSS" <hkrss@gmail.com> - 2015-11-20 09:13 +0100
  Re: How To Create A Endles List Of Lists In Python...??? Peter Otten <__peter__@web.de> - 2015-11-20 09:53 +0100
    Re: How To Create A Endles List Of Lists In Python...??? "HKRSS" <hkrss@gmail.com> - 2015-11-20 12:00 +0100
      Re: How To Create A Endles List Of Lists In Python...??? Nagy László Zsolt <gandalf@shopzeus.com> - 2015-11-20 14:06 +0100
        Re: How To Create A Endles List Of Lists In Python...??? robert.bralic@si.t-com.hr - 2015-11-20 05:29 -0800
      Re: How To Create A Endles List Of Lists In Python...??? Chris Angelico <rosuav@gmail.com> - 2015-11-21 00:09 +1100
      Re: How To Create A Endles List Of Lists In Python...??? Grant Edwards <invalid@invalid.invalid> - 2015-11-20 15:58 +0000
      Re: How To Create A Endles List Of Lists In Python...??? srinivas devaki <mr.eightnoteight@gmail.com> - 2015-11-20 23:58 +0530
      Re: How To Create A Endles List Of Lists In Python...??? srinivas devaki <mr.eightnoteight@gmail.com> - 2015-11-21 00:05 +0530
  Re: How To Create A Endles List Of Lists In Python...??? Denis McMahon <denismfmcmahon@gmail.com> - 2015-11-20 17:14 +0000
    Re: How To Create A Endles List Of Lists In Python...??? robert.bralic@si.t-com.hr - 2015-11-20 10:16 -0800
      Re: How To Create A Endles List Of Lists In Python...??? Ian Kelly <ian.g.kelly@gmail.com> - 2015-11-20 11:29 -0700
      Re: How To Create A Endles List Of Lists In Python...??? Chris Angelico <rosuav@gmail.com> - 2015-11-21 05:30 +1100
      Re: How To Create A Endles List Of Lists In Python...??? sohcahtoa82@gmail.com - 2015-11-20 11:26 -0800

csiph-web