whereis SOCKET

Adrian Aichner (aichner@master.ecf.teradyne.com)
Sun, 5 Mar 95 16:47:05 +0100

I am responding to python-list@cwi.nl, since I cannot respond to
mspal@prospero.fuw.edu.pl (Michal Spalinski).

Michal Spalinski writes:
>
> in Demo/Socket there is the pair of programs broadcast.py and
> radio.py. They import a module named SOCKET (capitals). My Python
> cannot find this SOCKET.
>
> In the library reference that I have it says the module SOCKET
> contains definitions of some constants (SOL_somethingorother).
>
> Where is SOCKET???
>
> It is not in python1.1.tar.gz which I got from ftp.cwi.nl.
>
> MS

This is where SOCKET.py is on my system:

aichner@master(230) cd /WWW/python-1.1
/WWW/python-1.1
aichner@master(231) find . -name '*SOCKET*' -print
./Lib/irix5/SOCKET.py
./Lib/sunos4/SOCKET.py
./Lib/sunos5/SOCKET.py
./lib/python/irix5/SOCKET.py
./lib/python/irix5/SOCKET.pyc
./lib/python/sunos4/SOCKET.py
./lib/python/sunos4/SOCKET.pyc
./lib/python/sunos5/SOCKET.py
./lib/python/sunos5/SOCKET.pyc
aichner@master(232)

If it is not in your sys.path, you can extend it as follows
at the beginnning of a script:

import sys
sys.path.append('/WWW/python-1.1/lib/python/<the-one-you-want>')
import SOCKET

Good Luck,

Adrian



\ \ \ \ \ \ \ \ \ \
\\ \\\ \\\\\ \\\ \ \ \ \\\ \\ \ \\ \ \ \\\\\
\ \ \\ \\ \ \ \ \ \\ \ \ \ \
\ \\\ \\ \ \ \ \ \ \\ \ \\\
\ \ \ \ \ \\\ \ \\ \ \ \ \
\\ \\\\\\\\ \\\\ \\\\\\\ \\ \\ \\\\\\\\

TERADYNE GMBH Adrian Aichner
DINGOLFINGER STRASSE 2 SEMICONDUCTOR TEST GROUP
D-81673 MU"NCHEN
TELEFON +49/89/4 18 61(0)-208
TELEFAX +49/89/4 18 61(0)-217
E-mail: aichner@ecf.teradyne.com