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/20120428/192c212d/attachment.html below:

<br><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 12:16, R. David Murray <span dir="ltr">&lt;<a href="mailto:rdmurray@bitdance.com" target="_blank">rdmurray@bitdance.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Sat, 28 Apr 2012 18:08:08 +1000, Nick Coghlan &lt;<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>&gt; wrote:<br>


&gt; On Sat, Apr 28, 2012 at 6:00 AM, Brett Cannon &lt;<a href="mailto:brett@python.org">brett@python.org</a>&gt; wrote:<br>
&gt; &gt; I&#39;m personally in favour of changing the insertion of &#39;&#39; to sys.path to<br>
&gt; &gt; inserting the cwd when the interpreter is launched.<br>
&gt;<br>
&gt; I&#39;m not, because it breaks importing from the interactive prompt if<br>
&gt; you change directory after starting the session.<br>
<br>
</div>Heh. Â I&#39;ve never thought of doing that. Â I would not have expected it<br>
to work (change directory from the interactive prompt and be able to<br>
import something located in the new cwd). Â I don&#39;t know why I wouldn&#39;t<br>
have expected it to work, I just didn&#39;t.<br>
<br>
That said, could this insertion of &#39;&#39; only happen when the interactive<br>
prompt is actually posted, and otherwise use cwd?</blockquote><div><br></div><div>If the decision to keep this entry around stands, can we consider changing it to &#39;.&#39; instead of the empty string? It mucks up stuff if you are not careful (e.g. ``os.listdir(&#39;&#39;)`` or ``&quot;/&quot;.join([&#39;&#39;, &#39;filename.py&#39;])``).</div>

</div>



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