Commits

Armin Rigo  committed 962c280

Fix.

  • Participants
  • Parent commits 6e584e6

Comments (0)

Files changed (1)

File lib_pypy/stackless.py

 
 class coroutine(object):
     "we can't have continulet as a base, because continulets can't be rebound"
-    _is_main = False
 
     def __init__(self):
         self._frame = None
     # create the main coroutine for this thread
     _tls.current_coroutine = None
     main_coroutine = coroutine()
-    main_coroutine._is_main = True
+    typ = _continuation.continulet
+    main_coroutine._frame = typ.__new__(typ)
     _tls.main_coroutine = main_coroutine
     _tls.current_coroutine = main_coroutine