A.T.Hofkamp wrote:
> On 2008-02-14, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> In the standard library module "operator", it would be nice to have a
>> dictionary
>> mapping operators strings with their respective functions. Something like:
>>
>> {
>> '+': add,
>> '-'
On 2008-02-14, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the standard library module "operator", it would be nice to have a
> dictionary
> mapping operators strings with their respective functions. Something like:
>
> {
> '+': add,
> '-': sub,
> 'in': contains,
>
Hi,
In the standard library module "operator", it would be nice to have a dictionary
mapping operators strings with their respective functions. Something like:
{
'+': add,
'-': sub,
'in': contains,
'and': and_,
'or': or_,
...
}
Rationale:
Recently I had to implemen