Hi Armin,

>From your explanations, spaceconfig might not apply to write the module app
code, but only for writing tests.
In this case, any alternative methods?

1. Could app code use the interpreter code from the same module? If yes, I
think we could wrap builtin module interterper function in interp_xxx.py,
and then use in app_xxx.py.
2. From module's __init__.py, it is able to import pypy.module.xxxx. Could
we write a funtion in __init__.py and then use ins app_xxx.py?

On Sun, Jun 7, 2015 at 1:05 AM, Armin Rigo <ar...@tunes.org> wrote:

> Hi Yicong,
>
> On 6 June 2015 at 08:34, Yicong Huang <hengha....@gmail.com> wrote:
> > class wrapAPI:
> >     spaceconfig = dict(usemodules=['thread'])
>
> The "spaceconfig" is not something magic that applies to any class.
> Only the test runner knows about it, and the class must be called
> AppTestXxx in order for it to be picked up by the test runner
> (py.test).  You must not instantiate it yourself.
>
>
> Armin
>
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to