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

2015-11-20 Thread HKRSS
"Peter Otten" <__pete...@web.de> wrote in message news:mailman.510.1448009596.16136.python-l...@python.org... > HKRSS wrote: > >> Thanks In Advance, Robert...;) > list_of_lists = [] list_of_lists.append(list_of_lists)

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

2015-11-20 Thread robert . bralic
Dana petak, 20. studenoga 2015. u 14:06:31 UTC+1, korisnik Nagy László Zsolt napisao je: > > 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

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

2015-11-20 Thread Nagy László Zsolt
> 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

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

2015-11-20 Thread Chris Angelico
On Sat, Nov 21, 2015 at 12:06 AM, Nagy László 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

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

2015-11-20 Thread Grant Edwards
On 2015-11-20, HKRSS 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... > > Thanks In Advance... > Robert..;) Not only was that genuine

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

2015-11-20 Thread Denis McMahon
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

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

2015-11-20 Thread srinivas devaki
On Fri, Nov 20, 2015 at 6:39 PM, Chris Angelico wrote: > My crystal ball suggests that defaultdict(list) might be useful here. > > ChrisA I used something similar to this for some problem in hackerrank, anyway i think this is what you want. class defaultlist(object): def

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

2015-11-20 Thread robert . bralic
Dana petak, 20. studenoga 2015. u 18:16:52 UTC+1, korisnik Denis McMahon napisao je: > 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

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

2015-11-20 Thread srinivas devaki
On Fri, Nov 20, 2015 at 11:58 PM, srinivas devaki wrote: > def __str__(self): > if len(self.list) == 0: > return '(' + str(self.data) + ')[...]' > return ''.join(['(', str(self.data), ')['] + map(str, self.list) + > [', ...]']) > ... >

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

2015-11-20 Thread Ian Kelly
On Fri, Nov 20, 2015 at 11:16 AM, wrote: > Dana petak, 20. studenoga 2015. u 18:16:52 UTC+1, korisnik Denis McMahon > napisao je: >> On Fri, 20 Nov 2015 08:43:04 +0100, HKRSS wrote: >> >> > Thanks In Advance, Robert...;) >> >> Just keep appending child lists to parent

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

2015-11-20 Thread Chris Angelico
On Sat, Nov 21, 2015 at 5:16 AM, wrote: > I Think That LISP Is Only Solution, I Wil Give Up Frpm Python... Capital Letters For The Win. You Should Consider Talking In German. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

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

2015-11-20 Thread sohcahtoa82
On Friday, November 20, 2015 at 10:16:34 AM UTC-8, robert...@si.t-com.hr wrote: > Dana petak, 20. studenoga 2015. u 18:16:52 UTC+1, korisnik Denis McMahon > napisao je: > > On Fri, 20 Nov 2015 08:43:04 +0100, HKRSS wrote: > > > > > Thanks In Advance, Robert...;) > > > > Just keep appending

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

2015-11-20 Thread Peter Otten
HKRSS wrote: > Thanks In Advance, Robert...;) >>> list_of_lists = [] >>> list_of_lists.append(list_of_lists) >>> list_of_lists[0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0] [[...]] -- https://mail.python.org/mailman/listinfo/python-list

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

2015-11-20 Thread HKRSS
Thanks In Advance, Robert...;) -- https://mail.python.org/mailman/listinfo/python-list

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

2015-11-20 Thread HKRSS
I Think That There Are Two Ways: 1)Harder Way Use Procedural C... 2)Easier Way Use LISP... "HKRSS" wrote in message news:n2miu8$fl4$1...@ls237.t-com.hr... > Thanks In Advance, Robert...;) > > -- https://mail.python.org/mailman/listinfo/python-list