473,378 Members | 1,380 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,378 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 2730
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: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.