Re: Linq to Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hrishy

    Re: Linq to Python

    Hi

    Well wouldn't it be a lot easier to query and join a xml source with a relational source with LINQ capabilites in Python.

    Hmm what am i missing here is there a site that takes all LINQ examples anddoes them using list comprehensions and makes them sound easy ?

    wasn't python supposed to make everything easy ?

    regards
    Hrishy


    --- On Tue, 23/9/08, sturlamolden <sturlamolden@y ahoo.nowrote:
    From: sturlamolden <sturlamolden@y ahoo.no>
    Subject: Re: Linq to Python
    To: python-list@python.org
    Date: Tuesday, 23 September, 2008, 7:49 PM
    On Sep 23, 4:48 pm, hrishy <hris...@yahoo. co.uk>
    wrote:
    Will LINQ be ported to Python ?
    No, because Python already has list comprehensions and we
    don't need
    the XML buzzword.
    --
    http://mail.python.org/mailman/listinfo/python-list


  • sturlamolden

    #2
    Re: Linq to Python

    On Sep 24, 5:22 pm, hrishy <hris...@yahoo. co.ukwrote:
    Well wouldn't it be a lot easier to query and join a xml source with a relational source with LINQ capabilites in Python.
    >
    Hmm what am i missing here is there a site that takes all LINQ examples and does them using list comprehensions and makes them sound easy ?
    >
    wasn't python supposed to make everything easy ?

    Most Python programmers use other languages as well. I have working
    knowledge of C, Matlab, C++, Java, Fortran 95, and C#. Those that
    responded to your post know what LINQ are and what LINQ does.

    Put simply, Python has dynamic typing, list comprehensions, and is
    scriptable (i.e. Python source is structured text). That's why Python
    don't
    need LINQ and XML the same way as C#. LINQ and XML is needed because
    C#
    is a statically typed compiled language. That is:

    LINQ: Python has list comprehensions and dynamic typing (C# do not)
    XML: Python is structured text (compiled .NET assemblies are not)

    Second, minimalistic syntax is a virtue. That is why C is still
    around.
    Python don't add new syntax sugar every time Redmond invents a new
    buzzword. Functions like XML processing are delegated to libraries --
    where they belong.

    Nobody was saying LINQ is a bad idea for a language like C#.

    Comment

    Working...