[ppa-qps-devel] stackless python
Brought to you by:
ods
From: Denis S. O. <od...@st...> - 2003-12-11 14:16:51
|
Наконец-то я увидел краткое и понятное пояснение, чем же так хорош stackless python. ---------- The problem is that I need to "yield" or "suspend" or "send something across a channel" from about 45 places in the code some of which are arbitrarily deep into multiple recursions. The generator thing will only allow me to go one level deep into a single call -- no? By contrast the stackless.channel mechanism is a far more general construct, allowing me to "yield" at any point without restructuring the code at all. Stackless rules. -- Aaron Watters ---------- То есть, в stackless можно спокойно реализовать микропоточную архитектуру, не разварачивая все функции, при выполнении которых возможно переключение, в одной области видимости. Stackless однозначно рулит! |