nice python solution
Uwe Schmitt
uwe at rocksport.de
Sun Nov 18 15:26:06 EST 2001
Hi,
i there a nice python shortcut for:
if idx=0:
a=val
elif idx=1:
b=val
???
I tried
(a,b)[idx] = val
but this does not work, i get an error message.
Greetings, Uwe.
--
Dr. Uwe Schmitt Uwe.Schmitt at num.uni-sb.de
Universitaet des Saarlandes Angewandte Mathematik
Building 36.1 Room 4.17 PO-Box 151150 D-66041 Saarbruecken
Mobile:0177/6806587 Fax:+49(0)681/302-4435 Office:+49(0)681/302-2468
More information about the Python-list
mailing list