On Thu, Apr 11, 2013 at 3:43 PM, Thomas Goebel <
[email protected]> wrote:
> ...
> > I get a syntax error, as I exepected (Python 2.6.4 (r264:75708, Oct 26
> > 2009, 08:23:19)).
>
> Sorry Franz,
>
> as you are using python 2.6 you have to use
>
> d1 = dict(('list_' + str(i), []) for
* On 11/04/2013 14:11, Franz Kelnreiter wrote:
> On Thu, Apr 11, 2013 at 1:46 PM, Thomas Goebel wrote:
>
>> global_list = {'_'.join(['list', str(i)]):[] for i in range(20)}
>
> Thanks for your explanation, I think I know what you want to do and I would
> very much like to understand your code in d
-- Forwarded message --
From: Franz Kelnreiter
Date: Thu, Apr 11, 2013 at 2:09 PM
Subject: Re: use a loop to create lists
To: [email protected]
On Thu, Apr 11, 2013 at 1:46 PM, Thomas Goebel <
[email protected]> wrote:
> * On 11/04/2013 13:25, Franz K