[Info-vax] Oracle Database vs Oracle/Rdb
Neil Rieck
n.rieck at sympatico.ca
Sat Jul 13 00:30:10 EDT 2019
On Monday, June 24, 2019 at 8:14:28 PM UTC-4, Arne Vajhøj wrote:
> On 6/24/2019 7:39 AM, Neil Rieck wrote:
> > Has anyone here played with Python on any OS?
>
> I have used it a tiny bit.
>
> Rather unusual language.
>
> But pretty cool.
>
> > Python has builtin
> > support to easily connect to MySQL or MariaDB.
>
> Are you sure about that?
>
> I thought you needed to add something.
>
> Very easy (like 5 minutes), but not builtin.
>
> > One of my colleagues
> > rewrote one of our server programs (written in VMS-BASIC then saving
> > data data to RMS) to Python. Surprisingly, the Python program is
> > smaller while yet faster.
> It is not surprising that Python code is short - it usually is.
>
> It sounds weird that interpreted Python code should be faster
> than compiled Basic code. Most likely the libraries used by the
> Python code is way more optimized than those used by the Basic
> code.
>
> Arne
Apologizes, I should have been a more careful with my wording. Within Python you need to execute an "import" statement to pull in mysql support.
I don't know why, but I often think printf() is built into "C" even though everyone here knows you need to do an "#import <stdio.h>" to pull it in. Sloppy thinking I suppose.
I ignored Python for a long time until I realized that most of my system admin tools in CentOS-7 were written in Python. This became apparent when someone did not properly install Python3 on one of our 6ix systems which broke all the scripts dependent upon Python2 (couldn't run firewall-cmd, yum, etc). Not sure why the authors of those scripts did not use the shebang hack. Perhaps this is one way RedHat ropes people into support contracts for RHEL :-)
Neil Rieck
Waterloo, Ontario, Canada.
More information about the Info-vax
mailing list