Linguistic ponderings

Nov 29, 2005 16:37

I have a server I want to communicate with, over a Unix-domain socket. The server speaks something which used to be a simple textual command-response protocol, but now has all sorts of strange asynchronous notifications, background jobs and other weirdness.

Deliberations hidden. )

Leave a comment

Comments 2

ewx November 29 2005, 17:59:21 UTC
Apparently you can cobble something resembling coroutines together with yield in Python.

Reply

sevenstring November 30 2005, 12:13:51 UTC
Nothing terribly useful. Python's generators are rather poor things, really. They're allowed only a single frame, not a separate stack, which is something of a bummer, really. Compare with, say, Icon's generators, which are much better things in almost every respect.

Reply


Leave a comment

Up