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
: [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):(
> 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
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