How To Create A Endles List Of Lists In Python...???
Chris Angelico
rosuav at gmail.com
Fri Nov 20 08:09:05 EST 2015
On Sat, Nov 21, 2015 at 12:06 AM, Nagy László Zsolt
<gandalf at shopzeus.com> 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
More information about the Python-list
mailing list