Now, why would I like to learn Python: because of IronPython port to CLR.
Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has
to be written, and then other backends..
What's the easiest way of learning python knowing perl? Is there somewhere
a 'how-to' cookbook with parallel examples of frequent idioms in perl and
python?
And most important thing, how does Python deal with database connectivity?
Is there a single API (akin to DBI) for connecting to databases?
How does Python support the following databases:
- Oracle
- Postgres
- MySQL
- SQLServer (maybe using freetds?)
- ODBC connectivity (connecting to MS Access) 13 2000
Zeljko Vrba wrote: Now, why would I like to learn Python: because of IronPython port to CLR. Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has to be written, and then other backends..
What's the easiest way of learning python knowing perl? Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
http://pleac.sourceforge.net/ And most important thing, how does Python deal with database connectivity? Is there a single API (akin to DBI) for connecting to databases?
Yes, python has defined single API How does Python support the following databases: - Oracle - Postgres - MySQL - SQLServer (maybe using freetds?) - ODBC connectivity (connecting to MS Access)
I have tried MySQLdb package and mdb connectivity through
win32com.client package.
I read about Postgres and Oracle connectivity...
Stano Paska.
Zeljko Vrba wrote: What's the easiest way of learning python knowing perl? Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
A good start might be: http://www.python.org/doc/Intros.html
under the "Introducti ons for programmers" heading.
Then there's http://www.python.org/doc/Comparisons.html#perl which has
direct comparisons.
And most important thing, how does Python deal with database connectivity? Is there a single API (akin to DBI) for connecting to databases?
There is a DB-API standard, which is implemented by the various connectors.
How does Python support the following databases: - Oracle - Postgres - MySQL - SQLServer (maybe using freetds?) - ODBC connectivity (connecting to MS Access)
Well.
Richard
On Tue, 3 Aug 2004 07:39:46 +0000 (UTC),
Zeljko Vrba <mo****@fly.srk .fer.hr> wrote: What's the easiest way of learning python knowing perl? Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
Jak Kirman wrote one around 1996. I've just put a copy in the Python wiki at http://www.python.org/moin/PerlPhrasebook .
--amk
Zeljko Vrba wrote: Now, why would I like to learn Python: because of IronPython port to CLR. Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has to be written, and then other backends..
What's the easiest way of learning python knowing perl? Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
And most important thing, how does Python deal with database connectivity? Is there a single API (akin to DBI) for connecting to databases?
How does Python support the following databases: - Oracle - Postgres - MySQL - SQLServer (maybe using freetds?) - ODBC connectivity (connecting to MS Access)
I have used Oracle, SQLServer and Access via ADO - try adodpapi.sf.net
which is a wrapper for ADO to the Python DB-API.
But note that you may well not be able to use any of this database stuff
from IronPython
David
David Fraser <da****@sjsoft. com> writes: Zeljko Vrba wrote: Now, why would I like to learn Python: because of IronPython port to CLR. Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has to be written, and then other backends.. What's the easiest way of learning python knowing perl?
For experienced scripters, I find Beazley's "Python Essential
Reference" is excellent. You already know what you want, just need to
see how Python does it, and don't need a lot of handholding. Get a
copy of "Python Cookbook" too, and scan that. Then rewrite one of
your exsiting perl scripts.
Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
An interesting variant on that is my pyperlish module, at http://www.seanet.com/~hgg9140/comp/index.html
You can either use it as-is, or read the code to see how to emulate
perl in python. NOTE: I do not recommend using pyperlish once you get
the hang of python.
And most important thing, how does Python deal with database connectivity? Is there a single API (akin to DBI) for connecting to databases? How does Python support the following databases: - Oracle - Postgres - MySQL - SQLServer (maybe using freetds?) - ODBC connectivity (connecting to MS Access)
I have used Oracle, SQLServer and Access via ADO - try adodpapi.sf.net which is a wrapper for ADO to the Python DB-API. But note that you may well not be able to use any of this database stuff from IronPython
David
More cross-platform and cross-DBMS is to code to the DB-API 2.0: http://www.python.org/topics/database/
-- ha************@ boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Harry George wrote: David Fraser <da****@sjsoft. com> writes:Zeljko Vrba wrote:And most important thing, how does Python deal with database connectivity ? Is there a single API (akin to DBI) for connecting to databases? How does Python support the following databases: - Oracle - Postgres - MySQL - SQLServer (maybe using freetds?) - ODBC connectivity (connecting to MS Access)
I have used Oracle, SQLServer and Access via ADO - try adodpapi.sf.net which is a wrapper for ADO to the Python DB-API. But note that you may well not be able to use any of this database stuff from IronPython
David
More cross-platform and cross-DBMS is to code to the DB-API 2.0: http://www.python.org/topics/database/
Thats why I said to look at adodbapi.source forge.net although I misspelt
it - it is DB-API 2.0 compliant.
David
Zeljko Vrba <mo****@fly.srk .fer.hr> wrote in message news:<sl******* ************@fl y.srk.fer.hr>.. . Now, why would I like to learn Python: because of IronPython port to CLR. Perl port to CLR doesn't seem to be coming soon. First Perl6 for Parrot has to be written, and then other backends..
What's the easiest way of learning python knowing perl? Is there somewhere a 'how-to' cookbook with parallel examples of frequent idioms in perl and python?
See the Perl/Python phrasebook: http://www.python.org/moin/PerlPhrasebook
-- Marcel
David Fraser <da****@sjsoft. com> wrote in message news:<ce******* ***@ctb-nnrp2.saix.net> ... Zeljko Vrba wrote:
And most important thing, how does Python deal with database connectivity? Is there a single API (akin to DBI) for connecting to databases?
I have used Oracle, SQLServer and Access via ADO - try adodpapi.sf.net which is a wrapper for ADO to the Python DB-API. But note that you may well not be able to use any of this database stuff from IronPython
Assuming you find yourself working with .NET -- as you would with
IronPython -- I would expect it to have access to the stock database
namespaces under whatever environment you're in: under MS's
implementation of .NET, System.Data.* (same under Mono?). This would
be the most likely line, since there's a lot of prior work in .NET
that targets that namespace, including UI controls.
For documentation, search for "ADO.NET". It's actually a pretty good
framework, and doesn't require a database connection to make use of it
(ie, you want an in-memory database, but don't need persistent
storage).
I don't know what Jim's planning to do with the Python db api, but
between the two, I'd personally use ADO.NET when available. I'd
suggest the IronPython email list ( www.ironpython.org) for more
information. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Howard Nease |
last post by:
Hello, everyone. I would appreciate any advice that someone could give me on
my future career path. Here is my situation:
I am a bright Junior in a very well-respected private high school, taking
almost all AP and accelerated classes. I am HIGHLY interested in technology,
more specifically the field of Computer Science and software engineering. I
have heard a whole lot about the fact that the market for software engineers
nowadays is...
|
by: Randall Smith |
last post by:
When I had been programming for a few years, I realised that as much as
a love to learn, I can only explore and be proficient at a limited
subset of technologies. I explored different languages to use for
general purpose programming including C, C++, Java, Perl, Ruby, and
Python. Of those languages, I chose to focus on Python because of many
reasons including clean design, high productivity, and an intelligent,
helpful community. My...
|
by: Alberto |
last post by:
I was trying to understand the reasons why I should learn Python. More
like a pros/cons about this language. Currently, I use C, C/C++, Java,
Perl, Visual VB and was looking to see the usefulness of Python. Any
suggestions?
|
by: surfunbear |
last post by:
I've read some posts on Perl versus Python and studied a bit of my
Python book.
I'm a software engineer, familiar with C++ objected oriented
development, but have been using Perl because it is great for pattern
matching, text processing, and automated testing. Our company is really
fixated on risk managnemt and the only way I can do enough testing
without working overtime (which some people have ended up doing) is by
automating my...
|
by: Martin Piper |
last post by:
Hi all.
I've recently landed myself the position of trainee
C++ programmer which I'm extremely pleased about,
but also nervous.
According to the feedback from the interview, I
have a good basic knowledge of C++ (through college)
although my contract states that I must endeavour to
learn more, so my question is - which areas of C++
| |
by: alpha |
last post by:
Hello, i was hoping someone in this group can give me a pointer in the
right direction.
I have no knowledge whatsoever about programming but am keen to learn.
I want to learn a language which i can perhaps earn a few pennys with
in my spare time. I am not sure if the latest languages require
knowledge of the older languages?.....can anyone give me a good
starting reference?.....i of course want to learn the latest language/s
so that i...
|
by: Xah Lee |
last post by:
i'm starting a yahoo group for learning python. Each day, a tip of
python will be shown, with the perl equivalent. For those of you
perlers who always wanted to learn python, this is suitable. (i started
it because i always wanted to switch to python but too lazy and always
falling back to a lang i am an expert at, but frustrated constantly by
its inanities and incompetences.)
to subscribe, go to:...
|
by: alex23 |
last post by:
On Jul 24, 11:53 pm, Brett Ritter <swift...@swiftone.orgwrote:
I've never used Perl myself, so I can't comment on the quality, but
this document was recommended earlier this week:
http://wiki.python.org/moin/PerlPhrasebook
If you're not anti-ORM, I highly recommend checking out SQLAlchemy.
It's not part of the standard lib, but it's an amazing tool:
http://www.sqlalchemy.org/
|
by: Hussein B |
last post by:
Hey,
I'm a Java/Java EE developer and I'm playing with Python these days.
I like the Python language so much and I like its communities and the
Django framework.
My friends are about to open a Ruby/Rails shop and they are asking me
to join them.
I don't know what, sure I'm not leaving Java, but they are asking me
to stop learning Python and concentrate on Ruby/Rails.
The sad fact (at least to me), Ruby is getting a lot of attention...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |