On Wed, 1 Dec 2004 10:23:28 -0500, Dave Merrill <[EMAIL PROTECTED]> wrote:
> "anton muhin" wrote:
> > Or dict((key, row[key]) for key in cols).
> 
> I'm on Py 2.3.3, and neither of these appear to work. Can someone confirm? I
> can't see anything in the 2.4 release notes that point to where this would
> have changed.

They use generator expressions, which were introduced by Python 2.4.
See <http://www.python.org/dev/doc/devel/whatsnew/node4.html>.

-- 
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to