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 emul

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

2000-06-19 Thread Chris McDonough
: [Zope] brain hurts regarding dynamic fcn args in Python > > > > 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):(

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}) a

[Zope] brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Jeff Sasmor
Hi- I guess I'm somewhere past a 'newbie' (after a few solid months) and I'm developing a calendar-based (but not based on calendar tag) 'event-log' 'black-box app' for lack of a better term, for eventual relase to Zope.org, if only as a helper for _new_ newbies. I'm stuck on what I guess is a py