Peter Hansen wrote: > Bo Peng wrote: > >> I need to pass a bunch of parameters conditionally. In C/C++, I can do >> func(cond1?a:b,cond2?c:d,.....) >> >> Is there an easier way to do this in Python? > > > Please read the FAQ to learn the answer and much other useful ...
The answer is no. Use if statements. -- http://mail.python.org/mailman/listinfo/python-list