[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    [pypy-dev] Success and Thanks! : Advice needed debugging a Sys.exit
From:       Andrew Francis <andrewfr_ice () yahoo ! com>
Date:       2009-12-18 19:08:28
Message-ID: 172694.28058.qm () web112414 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]

Hi Carl and Stephan:

>Message: 4
>Date: Mon, 14 Dec 2009 13:45:44 +0100
>From: Carl Friedrich Bolz <cfbolz@gmx.de>
>Subject: Re: [pypy-dev] Advice needed debugging a Sys.exit error
>    involving py.py    and Stackless.py
>To: pypy-dev@codespeak.net
>Message-ID: <4B263378.3000102@gmx.de>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed

CB>unfortunately I don't really have time to dig deeply into your code. I
CB>just wanted to give you the following hint: if you install greenlets for
CB>CPython, you can test the lib/stackless.py code on top of CPython.

Carl, I took your advice and ran stackless.py on top of greenlets and 
CPython. The test programmes worked! I will write more tests in the days 
to come. However this is a really need approach. This should be documented 
somewhere for other folks to try!

CB>This makes it possible to distinguish problems in the pure app-level
CB>code in lib/stackless.py from problems in the RPython-implementation of
CB>coroutines in PyPy. Given that you are changing the applevel code only,
CB>it is much more likely that the problem is actually caused by something
CB>you changed.

I changed only stackless.py. In turn, I changed very little code outside
of adding the select function. I am not sure what I am looking for but I 
started to look at pypy/module/_stackless for clues. If I had to guess,
I am thinking a culprit may involve stackless_flags - I am not setting 
a flag in the correct spot in the new code.

Once again, thanks for your help.

Cheers,
Andrew









      
_______________________________________________
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic