Linq to Python

hrishy hrishys at yahoo.co.uk
Wed Sep 24 17:25:01 CEST 2008


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 at gmail.com> wrote:

> From: Thomas G. Willis <tom.willis at gmail.com>
> Subject: Re: Linq to Python
> To: python-list at 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_cols,
> 
>     and_(table_relationship.c.accept_user_id==user.id,
> 
>     table_relationship.c.start_date==None
> 
>     ),
> 
>     from_obj=join(
> 
>     table_relationship,table_user,
> 
>    
> onclause=table_user.c.id==table_relationship.c.init_user_id
> 
>     ).outerjoin(table_profile)
> 
>     )
> 
> session.execute(query).fetchall()
> 
> 
> 
> 
> 
> 
> 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


      



More information about the Python-list mailing list