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"><<a href="mailto:rdmurray@bitdance.com" target="_blank">rdmurray@bitdance.com</a>></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 <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
> On Sat, Apr 28, 2012 at 6:00 AM, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
> > I'm personally in favour of changing the insertion of '' to sys.path to<br>
> > inserting the cwd when the interpreter is launched.<br>
><br>
> I'm not, because it breaks importing from the interactive prompt if<br>
> you change directory after starting the session.<br>
<br>
</div>Heh. Â I'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't know why I wouldn't<br>
have expected it to work, I just didn't.<br>
<br>
That said, could this insertion of '' 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 '.' instead of the empty string? It mucks up stuff if you are not careful (e.g. ``os.listdir('')`` or ``"/".join(['', 'filename.py'])``).</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