On Tue, Jun 5, 2012 at 6:59 PM, Benjamin Root wrote:
>
>
> On Tue, Jun 5, 2012 at 10:37 AM, Robert Kern wrote:
>
>> On Tue, Jun 5, 2012 at 2:54 PM, Neal Becker wrote:
>> > I think it's unfortunate that functions like logical_or are limited to
>> binary.
>> >
>> > As a workaround, I've been using
On Tue, Jun 5, 2012 at 10:37 AM, Robert Kern wrote:
> On Tue, Jun 5, 2012 at 2:54 PM, Neal Becker wrote:
> > I think it's unfortunate that functions like logical_or are limited to
> binary.
> >
> > As a workaround, I've been using this:
> >
> > def apply_binary (func, *args):
> >if len (args
On Tue, Jun 5, 2012 at 2:54 PM, Neal Becker wrote:
> I think it's unfortunate that functions like logical_or are limited to binary.
>
> As a workaround, I've been using this:
>
> def apply_binary (func, *args):
> if len (args) == 1:
> return args[0]
> elif len (args) == 2:
> re
I think it's unfortunate that functions like logical_or are limited to binary.
As a workaround, I've been using this:
def apply_binary (func, *args):
if len (args) == 1:
return args[0]
elif len (args) == 2:
return func (*args)
else:
return func (
ap