[Python-ideas] channel (synchronous queue)

Sturla Molden sturla at molden.no
Sun Feb 19 21:51:03 CET 2012


If someone want to write a PEP for Go'ish "channels" (or whatever), put 
it on the bug tracker, here is the example implementation (with a lock 
around stdout in the example code, stupid me...) It would still need a 
timeout argument.

A unittest could check the output of the test code as it is a known in 
advance. I don't really see the usefulness of a "channel" primitive, for 
those who do, here is my contribution.

I have only tested on Win64.

Sturla



-------------- next part --------------
A non-text attachment was scrubbed...
Name: channels.zip
Type: application/x-zip-compressed
Size: 2407 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120219/1110c03b/attachment.bin>


More information about the Python-ideas mailing list