Re: Securing a future for anonymous functions in Python

2004-12-30 Thread Paul L. Du Bois
Jp Calderone wrote: I'm not saying boo hoo lambdas are crippled fix them waah. I'm saying Lambdas and generator comprehensions are not comparable in this sense and arguments based on one should not be used to support positions about the other. This post and Michael Spencer's post which

Re: Python docs [was: function with a state]

2005-03-24 Thread Paul L. Du Bois
Xah Lee wrote: I think i'll just post snippets of my comments as i find them. (and feel like exposing) [ snipped ] That is a very good analysis. Can you submit a documentation patch? I would, but I'm too lazy to contribute. That doesn't mean I'm not thankful for your efforts, though! p --

Queue.Queue-like class without the busy-wait

2005-03-24 Thread Paul L. Du Bois
Has anyone written a Queue.Queue replacement that avoids busy-waiting? It doesn't matter if it uses os-specific APIs (eg WaitForMultipleObjects). I did some googling around and haven't found anything so far. Because I know someone will ask: no, the busy-waiting hasn't been a problem in my app.

Re: Queue.Queue-like class without the busy-wait

2005-03-24 Thread Paul L. Du Bois
Peter Hansen wrote: I don't believe the term busy-wait applies here. [Explanation] Yes, well, you're right. I was thinking of calling it slacker-waiting but didn't want to come off too cute. p -- http://mail.python.org/mailman/listinfo/python-list

Re: Example Code - Named Pipes (Python 2.4 + ctypes on Windows)

2005-03-25 Thread Paul L. Du Bois
Srijit Kumar Bhadra wrote: Hello, Here is an example of Multithreaded Pipe Server and Client using the excellent ctypes library (Windows). Coincidentally, the other day I just used named pipes in for the first time. I recommend using the excellent win32api extension; I believe it is included