hello. i'm using wxPython as my GUI package and whenever my program
executes a long process which takes at least 2 or 3 seconds, the user
interface gets corrupted while executing the progrocess during the
period.
i have tried the following lines of code...
frame = mainwindow(None, -1, 'my program
hi, there. i have this question which might sound quite stupid to some
people, but here we go anyway.
i have written a python program which interacts with a postgresql
database. what it does is simply drops an existing database called
'mytempdb'.
the code looks like below;
link = subprocess.Pope
hiaips wrote:
> damacy wrote:
> > hi, there. i have this question which might sound quite stupid to some
> > people, but here we go anyway.
> >
> > i have written a python program which interacts with a postgresql
> > database. what it does is simply
yes, i'll have a read. thanks. =)
hiaips wrote:
> Another option would be to use the psycopg module to connect to
> postgres from within your Python code. See
> http://www.initd.org/projects/psycopg1 for more information.
>
> --hiaips
--
http://mail.python.org/mailman/listinfo/python-list
thanks. i started to use psycopg.
however, i have this error message and i don't quite get what it means.
it says "DROP DATABASE cannot run inside a transaction block".
does anyone have a clue?
Tim Roberts wrote:
> "damacy" <[EMAIL PROTECTED]> wrote:
>
>
oh, fixed when i set isolation level to 0.
thanks anyway!
damacy wrote:
> thanks. i started to use psycopg.
>
> however, i have this error message and i don't quite get what it means.
>
> it says "DROP DATABASE cannot run inside a transaction block".
>
> does
hello, everyone.
i am trying to write a program which executes SQL commands stored in
.sql files.
i wrote a function called psql() whose contents look like the
following.
...
os.popen(command)
file = os.popen(command, 'w')
file.write(password)
file.close()
...
where command looks like
psql -h [
t NOT when creating a table which already exists in
the database? it should work for both cases.
thank you very much.
Simon Forman wrote:
> damacy wrote:
> > hello, everyone.
> ...
> > this works well. however, it does not show me any warning nor error
> > messages if ther
t NOT when creating a table which already exists in
the database? it should work for both cases.
thank you very much.
Simon Forman wrote:
> damacy wrote:
> > hello, everyone.
> ...
> > this works well. however, it does not show me any warning nor error
> > messages if ther
s" of the other machines; [b], [c] and [d]?
i have read some threads posted on this group, however, they only work
for localhost, not the entire network.
any hints if possible?
thanks for your time.
regards, damacy
--
http://mail.python.org/mailman/listinfo/python-list
hi, sandra.
no, it's not as complicated as that. all i want to do is to load a
database onto different machines residing in the same network. i hope
there is a way doing it. or perhaps i have a poor understanding of how
networks work.
regards, damacy
Sandra-24 wrote:
> damacy wrote
Amit Khemka wrote:
> On 8/24/06, Amit Khemka <[EMAIL PROTECTED]> wrote:
> > On 23 Aug 2006 21:46:21 -0700, damacy <[EMAIL PROTECTED]> wrote:
> > > hi, sandra.
> > >
> > > no, it's not as complicated as that. all i want to do is to load a
> &
Amit Khemka wrote:
> > in my program so far, multiple threads (255 threads in total) spawned
> > at once with each one of them trying to call socket.gethostbyaddr(ip)
> > function. i.e. if exception thrown, no machine found. i used .join() to
> > wait for the threads to terminate. it's fully workin
13 matches
Mail list logo