Re: Linq to Python

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

    Re: Linq to Python

    Hi Tom

    This is what i like and feel of the Python programmers smarter then every other langauge i know of.

    But i am not comfortable with your second statement XML i never need it
    one day everybody would need it.


    regards
    Hrishy


    --- On Tue, 23/9/08, Thomas G. Willis <tom.willis@gma il.comwrote:
    From: Thomas G. Willis <tom.willis@gma il.com>
    Subject: Re: Linq to Python
    To: python-list@python.org
    Date: Tuesday, 23 September, 2008, 7:45 PM
    But surely the idea behind it will eventually spread.
     It's really
    just comprehensions generalized over XML and
    relational datasets, a
    noble goal.  Besides, it's main purpose for .NET
    was to bring
    functional programming to it.  Python already has
    that, somewhat...

    it's really any object out of the box, i think the sql
    linq stuff is
    more of a query compiler, IMO sqlalchemy does that.


    query = select(user_col s,

    and_(table_rela tionship.c.acce pt_user_id==use r.id,

    table_relations hip.c.start_dat e==None

    ),

    from_obj=join(

    table_relations hip,table_user,


    onclause=table_ user.c.id==tabl e_relationship. c.init_user_id

    ).outerjoin(tab le_profile)

    )

    session.execute (query).fetchal l()






    XML? meh hopefully I would never need it. :)


    C# is my day job, and when I got my hands on LINQ back in
    January my
    initial thought was "Finally I have list
    comprehensions! !!! day job is
    fun again"

    For the most part, I think C# is catching up.
    --
    http://mail.python.org/mailman/listinfo/python-list


Working...