Re: Truly platform-independent DB access in Python?

2006-08-30 Thread Jorge Vargas
On 28 Aug 2006 00:01:06 -0700, bobrik <[EMAIL PROTECTED]> wrote: > Hello, > > I am using the Python DB API for access to MySQL. But it is not > platform-independent - I need a module not included in Python by > default - python-mysql, and it uses a compiled binary _mysql.so. So it > is not platform

Re: Truly platform-independent DB access in Python?

2006-08-30 Thread Boris Dušek
[EMAIL PROTECTED] wrote: ... snip ... > So, if what you were really asking was "what SQL databases can I access > without installing any software other than Python?", then the answer is "No > SQL databases were distributed with Python prior to 2.5. Starting with > Python 2.5, access to sqlite

Re: Truly platform-independent DB access in Python?

2006-08-29 Thread Bruno Desthuilliers
Boris Dušek wrote: > Bruno Desthuilliers wrote: > >>> 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 ? > > No, I don't. But I was trying

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Ben Finney
"Boris Duek" <[EMAIL PROTECTED]> writes: > Yes, you excactly got my point. The thing is that I can't rely on > Python 2.5 to be installed soon. > So the only solution for me at this moment is to use jython and from > there use Java JDBC API (sorry :-) Assuming Java is installed on an arbitrary ma

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Boris Dušek
Dennis Lee Bieber wrote: > On 28 Aug 2006 00:01:06 -0700, "bobrik" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > for that platform. Do you know of any Python solution for MySQL access > > that is 100% platform-independent? > > > Subprocess module invoking the MyS

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Boris Dušek
Bruno Desthuilliers wrote: > > 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 ? No, I don't. But I was trying to find the best solution.

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Steve Holden
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.

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Bruno Desthuilliers
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-inde

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Diez B. Roggisch
> > Yes, you excactly got my point. The thing is that I can't rely on > Python 2.5 to be installed soon. > So the only solution for me at this moment is to use jython and from > there use Java JDBC API (sorry :-) But it would be great if the Python > DB API compliant-modules would become parts of

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Fredrik Lundh
Boris Dušek wrote: > So the only solution for me at this moment is to use jython and from > there use Java JDBC API (sorry :-) so who installed Java for you? -- http://mail.python.org/mailman/listinfo/python-list

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Boris Dušek
[EMAIL PROTECTED] wrote: > I don't think you mean "platform-independent". I suspect you mean > "batteries included". Prior to the release of Python 2.5, no modules to > access SQL databases were distributed with core Python. Starting with 2.5, > sqlite access will be available: > > >>> impor

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Boris Dušek
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

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread skip
boris> I am using the Python DB API for access to MySQL. But it is not boris> platform-independent - I need a module not included in Python by boris> default - python-mysql, and it uses a compiled binary boris> _mysql.so. So it is not platform-independent because for each boris

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Bruno Desthuilliers
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. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > bobrik wrote: >> I am using the Python DB API for access to MySQL. But it is not >> platform-independent - I need a module not included in Python by >> default - python-mysql, and it uses a compiled binary _mysql.so. So it >> is not platform-independent because for each w

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread [EMAIL PROTECTED]
bobrik wrote: > I am using the Python DB API for access to MySQL. But it is not > platform-independent - I need a module not included in Python by > default - python-mysql, and it uses a compiled binary _mysql.so. So it > is not platform-independent because for each web-server on different > platfo

Truly platform-independent DB access in Python?

2006-08-28 Thread bobrik
Hello, I am using the Python DB API for access to MySQL. But it is not platform-independent - I need a module not included in Python by default - python-mysql, and it uses a compiled binary _mysql.so. So it is not platform-independent because for each web-server on different platform, I would have