[pypy-dev] refactoring Module discovery/implementation?
arigo at tunes.org
Thu Sep 1 11:41:26 CEST 2005
On Wed, Aug 31, 2005 at 08:45:04PM +0200, holger krekel wrote:
> I'd like to suggest heading towards making PyPy's mixed
> C-ported modules more self-contained and not have it's
> implementation and initilization spread over several
> directories and code areas.
The 'thread' module is pretty much self-contained in this respect (I
tried to keep it this way as much as possible), so I would like to hear
more specifically what you think is still missing. The structure is:
app_*.py app-level stuff
os_*.py interp-level stuff ('os' means using os threads)
test/ tests for the above
exttable.py table of external functions (guides both the
annotator and the rtyper)
ll_thread.py the low-level functions (similar to
test/ rpython-level tests of external functions
There is nothing at all specific to the thread module in pypy/annotator
or in pypy/rpython. However, for now, there is some C support code in
pypy/translator/c/src/*.h; I didn't know exactly if it is a good idea
to put even that in the pypy/module/thread package. Maybe it is.
More information about the Pypy-dev