A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060427/802a20f6/attachment.html below:

<br><br><div><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Thomas Wouters</b> &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;"><br><div></div><div style="direction: ltr;"><span class="q"><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Gustavo Carneiro</b> &lt;<a href="mailto:gjcarneiro@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gjcarneiro@gmail.com</a>&gt; wrote:</span><br></span></div><div style="direction: ltr;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;"><div></div><div style="direction: ltr;"><span></span></div><div style="direction: ltr;"><span class="q"><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Phillip J. Eby</b> &lt;
<a href="mailto:pje@telecommunity.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pje@telecommunity.com</a>&gt; wrote:</span></span></div><div style="direction: ltr;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote>
</div><div style="direction: ltr;"><span class="q">
At 03:48 PM 4/27/2006 +0200, Bernhard Herzog wrote:<br>&gt;&quot;Gustavo Carneiro&quot; &lt;<a href="mailto:gjcarneiro@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gjcarneiro@gmail.com
</a>&gt; writes:<br>&gt;<br>&gt; &gt;&nbsp;&nbsp; Now the problem.&nbsp;&nbsp;Suppose you have the source package python-foo-bar,
<br>&gt; &gt; which installs $pythondir/foo/__init__.py and $pythondir/foo/bar.py.&nbsp;&nbsp;This<br>&gt; &gt; would make a module called &quot;foo.bar&quot; available.&nbsp;&nbsp;Likewise, you can have the<br>&gt; &gt; source package python-foo-zbr, which installs
<br>&gt; $pythondir/foo/__init__.py and<br>&gt; &gt; $pythondir/foo/zbr.py.&nbsp;&nbsp;This would make a module called &quot;foo.zbr&quot;<br>&gt; available.<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp; The two packages above install the file $pythondir/foo/__init__.py.&nbsp;&nbsp;If
<br>&gt; &gt; one of them adds some content to __init__.py, the other one will overwrite<br>&gt; &gt; it.&nbsp;&nbsp;Packaging these two packages for e.g. debian would be extremely<br>&gt; &gt; difficult, because no two .deb packages are allowed to intall the same file.
<br>&gt; <br></span></div><div style="direction: ltr;"><span class="q">&gt;Yet another solution would be to put foo/__init__.py into a third<br>&gt;package, e.g. python-foo, on which both python-foo-bar and
<br>&gt;python-foo-zbr depend.</span></div><div style="direction: ltr;"></div></div></blockquote></div></div><div style="direction: ltr;"><span class="q"><div style="direction: ltr;"><div><br>&nbsp; You can't be serious.&nbsp; One package just to install a __init__.py file?
</div></div></span></div><div style="direction: ltr;"></div><div><br>Sure. Have you counted the number of 'empty' packages in Debian lately?</div></blockquote><div><br>&nbsp; Sure.&nbsp; That is already a problem; let's not make it a worse problem for no good reason; I haven't heard a good reason to keep the __init__.py file besides backward compatibility concerns.
<br>&nbsp; </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div> Besides, Guido's original proposal is not a fix for your problem, either; he only proposes to change the requirement for *sub*packages.
<br></div></blockquote></div><br>&nbsp; It *is* a solution for my problem.&nbsp; I don't need the __init__.py file for anything, since I don't need anything defined in the the 'foo' namespace, only the subpackages foo.bar and foo.zbr
.<br><br>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4