473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 <st**********@yahoo.nowrote:
From: sturlamolden <st**********@yahoo.no>
Subject: Re: Linq to Python
To: py*********@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


Sep 24 '08 #1
1 2731
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#.

Sep 24 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Hi all: after reading different places/sites about linq... I ran into these questions: 1. What framework do we need to run linq ? (does it depend on what version of visual studio we have?) how...
0
by: =?Utf-8?B?SHlwZXJjb2Rlcg==?= | last post by:
I'm encountering some strange behavior after deploying a ASP.net 3.5 website to production, i'm unable to reproduce these in my dev environment. This error seems to occur very randomly but it's...
4
by: =?Utf-8?B?RXJpYyBGYWxza2Vu?= | last post by:
We’re storing our main entity in an insert only table which stores the history of past revisions, but we’re facing problems with storing this history as LINQ will only update the entity, and...
14
by: thj | last post by:
Hi, I was wondering what you guys are using and why? LINQ to SQL or NHibernate? Thanks in advance, Tommy
21
by: hrishy | last post by:
Hi Will LINQ be ported to Python ? regards Hrishy
0
by: hrishy | last post by:
Hi Tim I am not a LINQ expert just a LINQ user and (was a little envious why the langauge i fantasize doesnt have it (pardon my ignorance of python)) LINQ as far as i know allows you to query...
3
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.