Hi,<br><br><div class="gmail_quote">2011/8/22 Mitchell Hashimoto <span dir="ltr"><<a href="mailto:mitchell.hashimoto@gmail.com">mitchell.hashimoto@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I've been working on some 'os' standard library methods, which requires some interp-level code in pypy.rpython.module.ll_os. </div><div><br></div><div>I noticed that while in the "py.py" interpreter that the methods I've been adding to "os" have been using CPython's library. I've written unit tests which appear to actually test the ll_os code and it seems to work, and I can also always drop back into the interp-level repl and do a "extregistry.lookup(fn).lltypeimpl" trick to get the method and it seems to work there as well.</div>
<div><br></div><div>But it would still be great to see the whole thing work without having to translate all of PyPy. Is this possible?</div></blockquote></div><br>Sure, you must write unit tests anyway.<div>Add your ones in pypy/rpython/module/test/test_ll_os.py,<div>
there are already many examples there.</div><div>(the magic function is getllimpl(), which returns the low-level function)<br clear="all"><div><br></div>-- <br>Amaury Forgeot d'Arc<br>
</div></div>