Fun with generators
While this has been possible before and I guess ( from somewhat
superficial reading ) Michael Sparks Kamaelia project is all about this
kind of stuff, Python 2.5 generators can be used trivially to turn
higher order functions like reduce or map into generators producing
streams. After reading a thread here on comp.lang.python initiated by
someone who gets nervous about reduce() is going away in Py3K one might
just respond that it's not a big deal: functions are out anyway,
dataflow and coroutines are in :)
|All times are GMT. The time now is 10:21 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.