Linq to Python
sturlamolden
sturlamolden at yahoo.no
Wed Sep 24 17:25:11 EDT 2008
On Sep 24, 10:59 pm, Duncan Booth <duncan.bo... at invalid.invalid>
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.
More information about the Python-list
mailing list