Re: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-20 Thread Dieter Maurer
Jeff Sasmor writes: Is there a (straightforward?) way to dynamically compose function argument lists? For example, in C, you can write" f(arg1, arg2, (conditional expression)?(val for TRUE state):(val for FALSE state)). Others have pointed out, that you can use "and" and "or" to emulate

RE: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Chris McDonough
Is there a (straightforward?) way to dynamically compose function argument lists? For example, in C, you can write" f(arg1, arg2, (conditional expression)?(val for TRUE state):(val for FALSE state)). This can be emulated in Python by the boolean logic: ( ({conditional expression}) and

RE: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Chris McDonough
Oops, I'm not quite right about this. This FAQ explains it better... http://www.python.org/doc/FAQ.html#4.16 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 19, 2000 4:51 PM To: [EMAIL PROTECTED] Subject: RE: [Zope] brain hurts regarding