Luaã¯ã³ã«ã¼ãã³ãã¨ã¦ãç¹å¾´çã§ããããªã«ç¶ç¶ãªãã¸ã§ã¯ããæ±ããããè¨èªã¯ãä»ã«ããã¾ããã http://www.lua.org/manual/5.1/manual.html#2.11 Luaã¾ã§ã¯ã ãªã§ããPythonã§ããã«è¿ããã¨ãã§ããªãããææ¦ãã¦ã¿ã¾ããã Python2.5以ä¸ãããªãã¨ãã¡ã§ãããã¸ã§ãã¬ã¼ã¿é¢æ°ãå ¥åã¨ãã¦ä½æããããã³ã«ã¼ãã³ããã©ãããªãã¸ã§ã¯ãã§ãã class Coroutine: def __init__(self, func): self._gen = func self._itr = None self.response = None self.alive = True def resume(self, *args): if not self.alive: raise "cannot resume dead coroutine" try
{{#tags}}- {{label}}
{{/tags}}