#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    17
    Rep Power
    0

    where is my sys.py in my py 2.3 installation?


    There must be some serious magic going on or I've gone insane. A search of my c:\py23\ directory reveals that there is no sys.py.

    Furthermore, my popen2.py uses os.pipe(), but os.py has no pipe function. Where are these functions and how can read the source code for them? Are they compiled into the interpreter?

    Caveat, everything works fine, i just can't find these files on my w2k system
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    sys and os are so fundamental to Python that they are part of the main run-time library code. They do not appear as seperate modules but you are still required to use an explicit import statement.

    grimey

IMN logo majestic logo threadwatch logo seochat tools logo