<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Sorry. Ignore my last message. I thought this conversation was on the IPython Dev list.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace">-- Carl Smith</font></span><br></div></div><div><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace"><a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a></font></span></div></div></div></div></div></div>
<br><div class="gmail_quote">On 12 April 2017 at 10:31, Carl Smith <span dir="ltr"><<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">I actually did have `me` defined, but changed it to `my` recently. I use it in my shell to store my personal details, like my mobile number, API keys etc. It's handy being able to do `my.mobile` when I need that info quickly.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Either way, the default banner should, and generally does, point new users to the help they need.</div></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-7474891856945514713gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace">-- Carl Smith</font></span><br></div></div><div><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace"><a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a></font></span></div></div></div></div></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On 12 April 2017 at 04:18, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, Apr 12, 2017 at 09:56:40AM +0800, Kamal Mustafa wrote:<br>
<br>
> On the same theme with "import this" and "import antigravity", "import<br>
> me" I think can be both some fun way to introduce Python and also<br>
> offer a helpful functionality when troubleshooting python installation<br>
> with someone new to the language.<br>
<br>
</span>If your Python installation isn't working, how are you supposed to run<br>
"import me"?<br>
<br>
You're a bit vague about what this "import me" is actually going to do.<br>
Can you show a mock-up of the output you expect?<br>
<br>
Both import this and antigravity are Easter eggs. I'm not entirely sure<br>
I like the idea of having a non-joke module run as a script on import.<br>
At the very least, it makes testing harder.<br>
<br>
But having said that, I like the idea of a standard, simple way of<br>
getting a good set of diagnostic information.<br>
<span><br>
<br>
> Currently, we have to use some myriad approach like "show me the<br>
> output of `which python`" to know the basic info of the python<br>
> installation someone having trouble or asking question.<br>
<br>
</span>What's wrong with that? Apart from not working on Windows.<br>
<br>
If you are trouble-shooting calling Python from the shell, you need to<br>
see what the shell thinks is your Python executable, which may be an<br>
alias. For example, I might have:<br>
<br>
[steve@ando ~]$ which python3.5<br>
alias python3.5='env -u PYTHONSTARTUP python3.5'<br>
        /usr/bin/env<br>
<br>
Now, if I forget and wonder why Python 3.5 doesn't run my startup file,<br>
I can't troubleshoot that from inside Python 3.5 since the problem is in<br>
the shell, not Python.<br>
<span class="m_-7474891856945514713HOEnZb"><font color="#888888"><br>
<br>
--<br>
Steve<br>
</font></span><div class="m_-7474891856945514713HOEnZb"><div class="m_-7474891856945514713h5">______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>