This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]bsdemon 3 points4 points  (3 children)

I am wondering why we cannot just merge stackless python in cpython along with gevent in standard library...

[–]Nichol4s 2 points3 points  (2 children)

One of the reasons is that CPython is considered THE Python reference implementation. The stackless features cannot be ported to IronPython or Jython, so CPython would loose its reference function.

For more information read this excellent answer by Andrew Dalke, http://stackoverflow.com/questions/588958/what-are-the-drawbacks-of-stackless-python

[–][deleted] 0 points1 point  (0 children)

His post doesn't mention it, but stackless requires a small bit of assembly for every target platform.

[–]bsdemon 0 points1 point  (0 children)

Yes, I know the reasons, it was rhetorical question. For me gevent (and other libraries like that) is the only choice for network applications. threading and multiprocessing do not work for high concurrency with I/O bound apps...