I have a python-script: myscript, used to start a program on another
computer and I use OptionParser in optpars.
I use it like this: myscript -H host arg1 -x -y zzz
I would like OptionParser to ignore all arguments after arg1, because
these are options that should be used by the program started on
On 9 Okt, 17:18, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> lgwe wrote:
> > I have a python-script: myscript, used to start a program on another
> > computer and I use OptionParser in optpars.
> > I use it like this: myscript -H host arg1 -x -y zzz
> &
I want to receive 200 udp datagrams. Each into a new data string.
But I dont know how to do that, this is wrong:
import socket
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind(("",port))
i = 0
while i<200:
data[i],addr = s.recvfrom(1024)
i = +1
data[i] is illegal.
Any suggestio