Re: Good thread pool module

2006-03-22 Thread Kinsley Turner
> There isn't a thread pool module in the standard library, but I'm sure > many have been written by people in the python community. > Anyone have a favorite? Is there one particular implementation that's > recommended? > > Not looking for anything fancy, just something that lets me queue up >

Re: how to lock a file in ftp site

2005-12-21 Thread Kinsley Turner
> I've come across this problem - instead of uploading the file to it's > > intended directory, upload it to a temp directory, with a unique name > (say ummddhhmmss where u is username and the rest are > obvious) and then *rename* it to it's correct name in the real > destination dir

Re: how to lock a file in ftp site

2005-12-20 Thread Kinsley Turner
> am trying to write some information into the file, which is located in > ftp, and this file can be updated by number of people, but if at all i > download a file from the ftp to my local machine, update it and then > upload it back to ftp, and at the same time if some one else downloads > the s

Win32 popen with py2exe

2005-12-19 Thread Kinsley Turner
Hey, Does os.popen() actually work in a py2exe win32 package? As far as I can tell, it just doesn't seem to do anything, although it seems to work ok outside of py2exe. Any hints? There does seem to be a popen.exe combined with py2exe... Ah... maybe that's not being included in the package!?

Re: Newbie: Python & Serial Port question

2005-11-30 Thread Kinsley Turner
[EMAIL PROTECTED] wrote on 30/11/2005 07:48:39 PM: > Am a python newbie. Does python have a native way to communicate with a > PC serial port? I found that pyserial needs java. > > I am using Linux..CentOS 4.2, to be exact, no java installed and > zilch/no/none/maybe never experience of java t

python number handling - tiny encryption algorithm

2005-11-29 Thread Kinsley Turner
Hey-ho, I'm getting a bit out of my depth porting the 'tiny encryption algorithm' from C to python. Ref: http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm http://www.simonshepherd.supanet.com/source.htm#new_ansi Specifically I don;t know how to handle a C-long block and perform the math