wasm-demo/demo/ermis-f/python_m/cur/1940

32 lines
684 B
Plaintext

From: JamesL at Lugoj.Com (James Logajan)
Date: Wed, 12 May 1999 21:21:37 -0700
Subject: A Summary: Expression-Assignments. (Very Long)
References: <Pine.SUN.3.95-heb-2.07.990511232428.3549B-100000@sunset.ma.huji.ac.il>
Message-ID: <373A5351.A808930D@Lugoj.Com>
X-UID: 1940
[Posted and e-mailed]
With all due respect, you missed my way (Way 4):
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])
I like it, I posted it elsewhere, but I guess it got lost in the noise or
something.
Moshe Zadka wrote:
[Summary elided for brevity.]