exec / execfile namespace problem
karanvasudevaNOkaSPAM at usa.net.invalid
Sat Nov 6 11:26:17 CET 1999
I'm trying to do this:
chunk = ''
for line in fileinput.input('cool.py'):
chunk = chunk + line
where 'cool.py' is this: (in part)
h = httplib.HTTP('')
This fails with this error message at the command prompt:
Traceback (innermost last):
File "testSlave.py", line 1, in ?
File "cool.py", line 8, in ?
File "httplib.py", line xx, in putrequest
File "httplib.py", line xx, in send
(I changed two line numbers to xx, they were different but thats
I've tried to change self.sock to sock, but that didn't help. Guess
I'm stumbling around in the dark being an absolute newbie at this.
Any help would be appreciated.
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
More information about the Python-list