On Sep 24, 10:59 pm, Duncan Booth <[EMAIL PROTECTED]>
wrote:

> Simple LINQ expressions like the one you gave map easily to Python list
> comprehensions. What Microsoft have done though is provide a consistent
> implementation which allows you to write complex SQL like expressions which
> will work identically on databases or most other sequence types.
> han extensions to syntax.

List comprehensions work with any iterable sequence. You can nest them
to make more complex statements. You can also use a generator to
iterate through a database or an XML document. Here is approximately
where linq stops being a marvelous addition to Python.

And I can honestly do without the SQL syntax.





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

Reply via email to