On Jul 12, 2013, at 04:01 PM, Nick Coghlan wrote:You had me until here...
>I'd personally be in favour of the notion of also allowing strings as the
>first argument, so you could instead write:
> data = fold("+=", , iterables)
...but this is a neat idea.
>(Independent of this idea, it would actually be nice if the operator module
>had a dictionary mapping from op symbols to names, like
>operator.by_symbol["+="] giving operator.iadd)