Popular recipes by Tarek Ziadé http://code.activestate.com/recipes/users/2624842/2005-11-18T10:24:17-08:00ActiveState Code Recipesrelative import shortcut (Python)
2005-11-18T10:24:17-08:00Tarek Ziadéhttp://code.activestate.com/recipes/users/2624842/http://code.activestate.com/recipes/456362-relative-import-shortcut/
<p style="color: grey">
Python
recipe 456362
by <a href="/recipes/users/2624842/">Tarek Ziadé</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
</p>
<p>this is a hack to get the "foo" module that's outside a package whithin a file of the package, when it also contains a module named "foo" (ie relative imports)</p>
performance testing with a pystone measurement decorator (Python)
2005-10-12T16:18:30-07:00Tarek Ziadéhttp://code.activestate.com/recipes/users/2624842/http://code.activestate.com/recipes/440700-performance-testing-with-a-pystone-measurement-dec/
<p style="color: grey">
Python
recipe 440700
by <a href="/recipes/users/2624842/">Tarek Ziadé</a>
(<a href="/recipes/tags/debugging/">debugging</a>).
Revision 2.
</p>
<p>This recipe explains how to check that a given function does not run slower than a given pystone rate. It first calculates the pystone ratio on your box.</p>