Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Wes Turner
Steven, I had intended to answer the question. If I did not answer this question, I must have misunderstood the question. > Never mind. site._script() as pointed out by Wes Turner is what I need: These commands could also be helpful for the inferred use case: $(which pip) --version

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Paul Moore
On 12 April 2017 at 14:35, Kamal Mustafa wrote: > Never mind. site._script() as pointed out by Wes Turner is what I need:- > > Python 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits" or "license" for more information.

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Kamal Mustafa
Never mind. site._script() as pointed out by Wes Turner is what I need:- Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import site >>> site._script() sys.path = [ '', '/usr/lib/python3.4',

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Mark Lawrence via Python-ideas
On 12/04/2017 04:04, Steven D'Aprano wrote: On Tue, Apr 11, 2017 at 09:28:22PM -0500, Wes Turner wrote: python -m site https://github.com/python/cpython/blob/master/Lib/site.py - _script() Wes, I have no idea what that code snippet is supposed to do, or even whether it is supposed to be

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Carl Smith
Sorry. Ignore my last message. I thought this conversation was on the IPython Dev list. -- Carl Smith carl.in...@gmail.com On 12 April 2017 at 10:31, Carl Smith wrote: > I actually did have `me` defined, but changed it to `my` recently. I use > it in my shell to store my

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Carl Smith
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. Either way, the default banner should, and generally does, point new

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Steven D'Aprano
On Wed, Apr 12, 2017 at 09:56:40AM +0800, Kamal Mustafa wrote: > On the same theme with "import this" and "import antigravity", "import > me" I think can be both some fun way to introduce Python and also > offer a helpful functionality when troubleshooting python installation > with someone new

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Steven D'Aprano
On Tue, Apr 11, 2017 at 09:28:22PM -0500, Wes Turner wrote: > python -m site > https://github.com/python/cpython/blob/master/Lib/site.py > - _script() Wes, I have no idea what that code snippet is supposed to do, or even whether it is supposed to be working code. Remember that we can't read

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Kamal Mustafa
Cool ! I don't know this. On 12 April 2017 at 10:28, Wes Turner wrote: > python -m site > https://github.com/python/cpython/blob/master/Lib/site.py > - _script() > > > On Tuesday, April 11, 2017, Kamal Mustafa wrote: >> >> On the same theme with

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Ryan Gonzalez
...except it would break everybody who has a module named `me` (which admittedly isn't too common...). Something like `import this.what` or something like that would be cool, though. -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Wes Turner
python -m site https://github.com/python/cpython/blob/master/Lib/site.py - _script() On Tuesday, April 11, 2017, Kamal Mustafa wrote: > On the same theme with "import this" and "import antigravity", "import > me" I think can be both some fun way to introduce Python and

[Python-ideas] "import me" to display some summary of the current python installation

2017-04-11 Thread Kamal Mustafa
On the same theme with "import this" and "import antigravity", "import me" I think can be both some fun way to introduce Python and also offer a helpful functionality when troubleshooting python installation with someone new to the language. Currently, we have to use some myriad approach like