<br><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 4:53 PM, Éric Araujo <span dir="ltr">&lt;<a href="mailto:merwok@netwok.org">merwok@netwok.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 14/02/2011 18:45, holger krekel a écrit :<br>
<div class="im">&gt; Besides, it&#39;s always good to avoid code in __init__.py<br>
&gt; files including imports.<br>
<br>
</div>Could you elaborate on the reasons for that?  This has come up recently<br>
on another ML, python-dev I think, and the only rationale was use of<br>
setuptools namespace packages.<br>
<br>
Regards<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</div></div></blockquote></div><br>There are 2 issues: a) it&#39;s really easy to get yourself into a circular import, and b) most people forget to look in __init__.py for code :)<br><br>Alex<br clear="all"><br>-- <br>&quot;I disapprove of what you say, but I will defend to the death your right to say it.&quot; -- Evelyn Beatrice Hall (summarizing Voltaire)<br>
&quot;The people&#39;s good is the highest law.&quot; -- Cicero<br><br>