home | show tags | navigation
Stackless Python is one of the coolest languages I’ve seen recently. To put it very (very) simply, it’s Python with coroutines. Take this example (stolen from here):
ping_channel = stackless.channel()
pong_channel = stackless.channel()
def ping():
while ping_channel.receive(): #blocks here
print “PING”
[…]