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

Re: Anybody use web2py?

2009-12-20 Thread Baron
If all web2py offers is default views, then it may be good for proof of concept projects, however I can't see in my right mind, proofing an application, and then turning around to write it in django because more than the defaults is needed. You *can* customize web2py views ... Why does

[issue5912] import deadlocks when using fork

2009-05-03 Thread ayal baron
New submission from ayal baron ayal.ba...@rocketier.com: While running 2 or more threads, if one thread is importing anything (i.e. has the import lock) and the other thread runs fork and then the child process runs import then the child and parent will hang forever (the child waits

[issue1590864] import deadlocks when using PyObjC threads

2009-04-21 Thread ayal baron
ayal baron ayal.ba...@rocketier.com added the comment: Hi, We have the same problem while running two threads where one is running a subprocess command and the other is importing modules. This will cause a deadlock and this IS a bug!!! This happens quite often on a slow machine (once every 2-3