Hi,<br><br><div class="gmail_quote">2011/8/22 Mitchell Hashimoto <span dir="ltr">&lt;<a href="mailto:mitchell.hashimoto@gmail.com">mitchell.hashimoto@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I&#39;ve been working on some &#39;os&#39; 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 &quot;py.py&quot; interpreter that the methods I&#39;ve been adding to &quot;os&quot; have been using CPython&#39;s library. I&#39;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 &quot;extregistry.lookup(fn).lltypeimpl&quot; 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&#39;Arc<br>
</div></div>