Accessing a database from a multithreaded application

2005-11-22 Thread Alan Kemp
Hi, I have a problem that is half python, half design. I have a multithreaded network server working, each client request spawns a new thread which deals with that client for as long as it is connected (think ftp style rather than http style connections here). Each thread gets passed a reference

Re: Put a url in a browsers address bar

2005-08-18 Thread Alan Kemp
On Thu, 18 Aug 2005 12:01:16 -0400, Colin Gillespie <[EMAIL PROTECTED]> wrote: > I would like to place a url in my browsers address bar, then execute. > How can do this? > > e.g. > > def goToGoogle(): > url = "www.google.com" > b = openBrowser() > b.goToUrl(url) > retu

Re: (OT) Is there something that people can use instead of full blown Python to run Python programs?

2005-08-18 Thread Alan Kemp
On Thu, 18 Aug 2005 12:38:30 -0400, Gregory PiƱero <[EMAIL PROTECTED]> wrote: > I'm no expert, but I'm guessing you could compile a python with less > libraries. I bet that would slim it down a lot. > > -Greg > > > On 8/18/05, Nathan Pinno <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> Is there so

Re: last line chopped from input file

2005-08-21 Thread Alan Kemp
On Sun, 21 Aug 2005 13:41:14 -0400, Eric Lavigne <[EMAIL PROTECTED]> wrote: >> A shorter python program would be: >> >> os.command("debug\\curve-fit output.txt") > > I tried this program: > import os > os.command("debug\\curve-fit output.txt") > > My error message is: > AttributeError: '