On Apr 11, 7:28 pm, "7stud" <[EMAIL PROTECTED]> wrote:
> On Apr 11, 7:01 pm, "7stud" <[EMAIL PROTECTED]> wrote:
>
> > On Apr 11, 2:57 pm, Bruno Desthuilliers
>
> > <[EMAIL PROTECTED]> wrote:
> > > IamIan a écrit :
>
> > > yearTotals = dict([(year, dict.fromkeys(months, 0)) for year in years])
>
> > > HTH
>
> > List comprehensions without a list?  What? Where? How?
>
> Ooops.  I copied the wrong one.  I was looking at this one:
>
> yearTotals = dict((year, monthTotals) for year in years)

Never mind.  I found this PEP:

http://www.python.org/dev/peps/pep-0289/

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to