problems when unpacking tuple ...

Gerard Flanagan grflanagan at yahoo.co.uk
Sat Apr 22 13:33:58 EDT 2006


harold wrote:
> Thank you Gerard.
> This must be the problem. Now I can get it working.

Good!  I got confused thinking about it too, but I think you just had
one loop too many.

for line in sys.stdin :
    try :
        a,b,c,d = line.split()

not:

for line in sys.stdin :
    try :
        for a,b,c,d in line.split() :
            pass

Gerard




More information about the Python-list mailing list