Re: mod_python, COM, on win2k3 server

2006-05-20 Thread drs
Some details, and this is weirder than I thought. It is working fine with internet explorer or mozilla as the client, but only crashes with Firefox. Moreover, even while firefox is getting errors, IE stilll works fine. The error I get is: Mod_python error: "PythonHandler mod_python.publisher"

mod_python, COM, on win2k3 server

2006-05-20 Thread drs
I have an application that runs on mod_python/apache using the publisher handler. It uses an access db as the backend and connects via ADO. In a test environment on XP it runs fine, but when on a win2k3 server it will load one page, but all subsequent page loads throw a pythoncom.CoInitialize

encryption/decryption help

2005-01-12 Thread drs
Hi, I need to send secure data over an insecure network. To that end, I am needing to encrypt serialized data and then decrypt it. Is there a builtin way to do this in Python? MD5, SHA, etc encrypt, but I am not seeing a way to get back my data. Encryption is totally new to me, so any pointers o

Re: Newbie: Pythonwin

2005-01-12 Thread drs
"Brent W. Hughes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) I'm running a program within Pythonwin. It's taking too long and I want > to stop/kill it. What do I do (other than ctrl-alt-del)? > Right click on the little python icon in the sys tray and select break into runn

Re: shutil.move has a mind of its own

2005-01-10 Thread drs
"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Daniel Bickett wrote: > > shutil.move( "C:\omg.txt" , "C:\folder\subdir" ) ^ ^^ ^ > The problem is that backslash is the escape character. In particular, > '\f' is

Silly questions about True and False

2004-12-20 Thread drs
I just upgraded my Python install, and for the first time have True and False rather than 1 and 0. I was playing around at the command line to test how they work (for instance, "if 9:" and "if True:" both lead to the conditional being executed, but True == 9 -> False, that this would be true was n

Random number generation from functions

2004-11-29 Thread drs
Is there any way to generate random numbers based on arbitrary real valued functions? I am looking for something like random.gauss() but with natural log and exponential functions. thanks, -d -- http://mail.python.org/mailman/listinfo/python-list