A modest solution to the madness. Was: while (a=b()) ...

JamesL at Lugoj.com JamesL at Lugoj.com
Wed May 12 12:05:21 EDT 1999


On viewing my posting through Dejanews, it appears scrambled. So here
is the essence of it again, hopefully in better shape:

import sys

def Set(a, b):
    a[0] = b
    return b

a = [None]
while Set(a, sys.stdin.readline()):
    print repr(a[0])

print "EOF:", repr(a[0])


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---




More information about the Python-list mailing list