Hi, Some builtin modules only expose interpreter level function, e.g. in builtin module select: appleveldefs = { }
interpleveldefs = { 'select': 'interp_select.select', 'error' : 'space.fromcache(interp_select.Cache).w_error' } And for a new built model, how to import and use that interpreter level function in app level code? We tried to import the module in app level code, but failed. e.g., in a new built module: interpleveldefs = { } appleveldefs = { 'test_api': 'app_test.test_api', } In app_ test.py, we tried to import the module, but neither of below could succeed: import select => ImportError: No module named select import pypy.module.select =>ImportError: No module named pypy
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev