Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2006-09-05 13:54:05
Size: 3491
Editor: HuangYi
Comment:
Revision 4 as of 2006-12-05 10:28:51
Size: 3603
Editor: HuangYi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
== 相关链接 == == 相关文档 ==
Line 35: Line 35:
 * [http://codespeak.net/svn/pypy/dist/pypy/doc/discussion/howtoimplementpickling.txt Designing thread pickling or "the Essence of Stackless Python"]
Line 36: Line 37:
 * [http://codespeak.net/svn/pypy/dist/pypy/doc/discussion/howtoimplementpickling.txt Designing thread pickling or "the Essence of Stackless Python"]
Line 39: Line 39:
== 示例 == == 相关代码 ==
 * [:HuangYi/yield_stacklesspython: 使用 yield 模拟 stacklesspython, 也许能帮助理解其机制]

TableOfContents

Stackless Python

简介

Stackless Python 是 Python 编程语言的一个增强版本。它能让程序员在获得基于线程编程的好处的同时,还不用考虑传统线程带来的性能和灵活性的问题。由 Stackless 添加到 Python 中的微线程是一个便宜且轻量的便利工具,如果用得恰当的话,它能提供以下好处:

  • 改良程序结构
  • 增强代码可读性
  • 提高程序员生产力

Stackless Python is an enhanced version of the Python programming language. It allows programmers to reap the benefits of thread-based programming without the performance and complexity problems associated with conventional threads. The microthreads that Stackless adds to Python are a cheap and lightweight convenience which can if used properly, give the following benefits:

  • Improved program structure.
  • More readable code.
  • Increased programmer productivity.

特性

对于所有通过使用 Stackless 所能获得的便利来说,通过 stackless 模块暴露出来的功能其实只有其中很少的一部分。通过阅读以下页面提供的信息,你将会对这些概念熟悉起来的:

For all the convenience gained through using Stackless, there is really only a minimal amount of functionality exposed through the stackless module. You can get more familiar with these aspects by reading the information provided in the following pages:

相关文档

相关代码

  • [:HuangYi/yield_stacklesspython: 使用 yield 模拟 stacklesspython, 也许能帮助理解其机制]

讨论

StacklessPython (last edited 2009-12-25 07:10:15 by localhost)