Re: Generate unique ID for URL

2012-11-13 Thread Richard Baron Penman
I found the MD5 and SHA hashes slow to calculate. The builtin hash is fast but I was concerned about collisions. What rate of collisions could I expect? Outside attacks not an issue and multiple processes would be used. On Wed, Nov 14, 2012 at 11:26 AM, Chris Kaynor ckay...@zindagigames.com

How to safely maintain a status file

2012-07-08 Thread Richard Baron Penman
Hello, I want my script to generate a ~1KB status file several times a second. The script may be terminated at any time but the status file must not be corrupted. When the script is started next time the status file will be read to check what needs to be done. My initial solution was a thread

Re: asynchronous downloading

2012-02-25 Thread Richard Baron Penman
I read through the python-dev archives and found the fundamental problem is no one maintains asnycore / asynchat. Well, actually I do/did. ah OK. I had read this comment from a few years back: IIRC, there was a threat to remove asyncore because there were no maintainers, no one was fixing

Re: asynchronous downloading

2012-02-23 Thread Richard Baron Penman
I want to download content asynchronously. This would be straightforward to do threaded or across processes, but difficult asynchronously so people seem to rely on external libraries (twisted / gevent / eventlet). Exactly - the fact it's difficult is why those tools compete. It is