Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
Thanks, Alan. Very helpful; tho' I probably need to gigest Steven's information before I fully digest yours. On Tuesday 23 August 2011 01:15:52 Alan Gauld wrote: > So sub-routine comers from the world of assembler programming and was > adopted by BASIC because BASIC was invented back in the 1960

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Alan Gauld
On 22/08/11 18:38, Lisi wrote: technical terms. I am still very confused by the terminology. Having been told that modules, functions and methods are just different names for the same thing, that commands are really also the same thing and having had them called yet a fifth thing in order "not

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
Thanks, Steven, for an extremely helpful email. I _think_ that I have now grasped it; tho' teh proof of teh pudding is in the eating. :-/ On Monday 22 August 2011 19:55:02 Steven D'Aprano wrote: > Lisi wrote: [snip] > Are you using Windows or Linux or Mac? Linux Debian 6. > On my Linux

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Steven D'Aprano
Lisi wrote: By "envelope" I meant container, because I was afraid of misusing the correct technical terms. I am still very confused by the terminology. Having been told that modules, functions and methods are just different names for the same thing, that commands are really also the same thi

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
On Monday 22 August 2011 17:31:41 Alan Gauld wrote: > Now I'm confused. Yes, I'm afraid that _I_ was very confused. I am gradually getting the mess in my head disentangled. > There can be functions inside a module but not commands, they are > technically something different and only exist withi

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Alan Gauld
On 22/08/11 14:45, Lisi wrote: I don't understand what you mean by "modules within it". The problem may be that I have again failed to understand. As I understand it, I can, should I wish to do so, write and save a subroutine that I wish to reuse rather than write the same subroutine out mult

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
On Monday 22 August 2011 15:09:45 Emile van Sebille wrote: > Actually, sys retains a reference to all imported modules in sys.modules > and that gives a pretty good idea of where stuff comes from(tm).  :) [snip interesting file] Thanks, Emile. :-) Lisi ___

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Emile van Sebille
On 8/22/2011 6:45 AM Lisi said... On Monday 22 August 2011 00:13:37 Steven D'Aprano wrote: The modules within it must surely be somewhere too. But since I can't find sys, I obviously can't find the modules. Again, I'd like to look at them. I don't understand what you mean by "modules within

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
On Monday 22 August 2011 00:13:37 Steven D'Aprano wrote: > > The modules within it must surely be somewhere too.  But since I can't > > find sys, I obviously can't find the modules.  Again, I'd like to look at > > them. > > I don't understand what you mean by "modules within it". The problem may b

Re: [Tutor] Where is sys.py?

2011-08-21 Thread Steven D'Aprano
Lisi wrote: If sys.py is a file, it must be somewhere; but I can't find it. Where is it? I would like to look at it. Others have already answered this, but consider how you might explore the answer at the interactive interpreter: >>> import os >>> os.__file__ '/usr/lib/python2.5/os.pyc' >>

Re: [Tutor] Where is sys.py?

2011-08-21 Thread Emile van Sebille
On 8/21/2011 4:57 AM Lisi said... If sys.py is a file, it must be somewhere; but I can't find it. Where is it? I would like to look at it. The modules within it must surely be somewhere too. But since I can't find sys, I obviously can't find the modules. Again, I'd like to look at them. In c

Re: [Tutor] Where is sys.py?

2011-08-21 Thread Lisi
On Sunday 21 August 2011 12:57:50 Lisi wrote: > If sys.py is a file, it must be somewhere; but I can't find it. Where is > it? I would like to look at it. > > The modules within it must surely be somewhere too. But since I can't find > sys, I obviously can't find the modules. Again, I'd like to

Re: [Tutor] Where is sys.py?

2011-08-21 Thread xDog Walker
On Sunday 2011 August 21 04:57, Lisi wrote: > If sys.py is a file, it must be somewhere; but I can't find it. Where is > it? I would like to look at it. > > The modules within it must surely be somewhere too. But since I can't find > sys, I obviously can't find the modules. Again, I'd like to lo

Re: [Tutor] Where is sys.py?

2011-08-21 Thread Peter Otten
Lisi wrote: > If sys.py is a file, it must be somewhere; but I can't find it. Where is > it? I would like to look at it. You are out of luck, there is no sys.py. The sys module is so tightly integrated that Python cannot run without it; it has to be part of the interpreter and is written in C.

Re: [Tutor] Where is sys.py?

2011-08-21 Thread R. Berman
> -Original Message- > From: tutor-bounces+bermanrl=cfl.rr@python.org [mailto:tutor- > bounces+bermanrl=cfl.rr@python.org] On Behalf Of Lisi > Sent: Sunday, August 21, 2011 7:58 AM > To: tutor@python.org > Subject: [Tutor] Where is sys.py? > > If sys.

[Tutor] Where is sys.py?

2011-08-21 Thread Lisi
If sys.py is a file, it must be somewhere; but I can't find it. Where is it? I would like to look at it. The modules within it must surely be somewhere too. But since I can't find sys, I obviously can't find the modules. Again, I'd like to look at them. In case it is relevant, I am using Py