Truly platform-independent DB access in Python?

Steve Holden steve at holdenweb.com
Mon Aug 28 12:17:15 EDT 2006


Bruno Desthuilliers wrote:
> Boris Dušek wrote:
> 
>>Bruno Desthuilliers wrote:
>>
>>>bobrik wrote:
>>>
>>>>Hello,
>>>>
>>>>I am using the Python DB API for access to MySQL. But it is not
>>>>platform-independent
>>>
>>>It is. You don't have to change your Python code according to the OS or
>>>CPU.
>>>
>>
>>What I mean is that wiht platform-independent access, I should be able
>>to not care on which operating system is the web server accessing my
>>scripts where I use MySQLdb 
> 
> 
> When it comes to *using* MySQLdb, you don't care about the OS, CPU and
> whatnot.
> 
> 
>>which I have to install (and therfore
>>platform-dependently) compile myself. 
> 
> 
> This is a very distinct problem.
> 
> 
>>The important point is that
>>MySQLdb is installed as an extra module. So you have to compile it
>>manually,
> 
> 
> Usually, cd <src-dir> && python setup.py install do the job.
> 
> 
>>but what if the OS with server accessing the site that is on
>>shared area changes?
> 
> 
> And what if Python is not installed on it ?-)
> 
> Seriously, do you think that hosting companies swap OS very often ?
> 
Well, GoDaddy just switched enough domains from Linux to Windows to make 
a significant difference to the Internet hosting statistics, and were 
allegedly paid handsomely by Microsoft to do it, but those were parked 
domains.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list