Where's Nemo?

Thread Solved

Join Date: May 2007
Posts: 5
Reputation: Zorbie is an unknown quantity at this point 
Solved Threads: 0
Zorbie's Avatar
Zorbie Zorbie is offline Offline
Newbie Poster

Where's Nemo?

 
0
  #1
Jun 10th, 2007
I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If not, how do I install it?

When I import sys from the command line, I get:

  1. >>> import sys
  2. >>>

Cheers
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 133
Reputation: mawe is an unknown quantity at this point 
Solved Threads: 58
mawe mawe is offline Offline
Junior Poster

Re: Where's Nemo?

 
0
  #2
Jun 10th, 2007
  1. >>> import sys
  2. >>>
Hmm, it seems to work. What did you expect to happen?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 55
Reputation: fredzik is an unknown quantity at this point 
Solved Threads: 4
fredzik fredzik is offline Offline
Junior Poster in Training

Re: Where's Nemo?

 
0
  #3
Jun 10th, 2007
Hi,

Yes mawe you're right, I've tried it as well and it seems to be performing.
  1. [list=1]<LI class=li1>>>> import sys[*]>>>[/list]

"Sys.py" is definitely there without a doubt! What the mystery is, is why would someone want to import it?

I too found this same thing happening to me when I first started using Python and I was mystfied that something AMAZING didn't happen when I first imported it, and wondered for a long time that maybe I was doing something wrong and that had I ruined Python...but I know now for sure that his machine is working all right!

fredzik.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 55
Reputation: fredzik is an unknown quantity at this point 
Solved Threads: 4
fredzik fredzik is offline Offline
Junior Poster in Training

Re: Where's Nemo?

 
0
  #4
Jun 10th, 2007
Hi,

The "Message" box is going funny again. The code should have come out exactly as theirs did...so here it is again:
  1. >>> import sys
  2. >>>

Bye.

fredzik.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 5
Reputation: Zorbie is an unknown quantity at this point 
Solved Threads: 0
Zorbie's Avatar
Zorbie Zorbie is offline Offline
Newbie Poster

Re: Where's Nemo?

 
0
  #5
Jun 10th, 2007
Yes, I've come to realize that it's working, I was just looking for a module named sys.py. It must be part of some other module file, but I don't know which one; maybe os.py?
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,022
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 932
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Where's Nemo?

 
0
  #6
Jun 10th, 2007
Not all modules are modulename.py files. Some of them are .pyc (Python bytecode) or .pyd (Python dll) )files. My best guess is that the module sys is written in C and is part of the Python24.dll/Python25.dll. If you run the Windows version of Python, this file is installed in the Windows\system32 folder.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 237
Reputation: katharnakh is an unknown quantity at this point 
Solved Threads: 33
katharnakh's Avatar
katharnakh katharnakh is offline Offline
Posting Whiz in Training

Re: Where's Nemo?

 
0
  #7
Jun 15th, 2007
>>My best guess is that the module sys is written in C

It is written in C(according to phrase in Dive Into Python).

kath.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 27
Reputation: StrikerX11 is an unknown quantity at this point 
Solved Threads: 7
StrikerX11 StrikerX11 is offline Offline
Light Poster

Re: Where's Nemo?

 
0
  #8
Jun 15th, 2007
sysmodule.h in C:\Python25\include
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC