EXOR or symmetric difference for the Counter class

Chris Rebert clp2 at rebertia.com
Fri Aug 13 07:45:54 CEST 2010


On Thu, Aug 12, 2010 at 10:36 PM, Steven D'Aprano
<steve at remove-this-cybersource.com.au> wrote:
> On Thu, 12 Aug 2010 13:20:19 -0700, Paddy wrote:
>
>> I find myself needing to calculate the difference between two Counters
>> or multisets or bags.
>
> Is this collections.Counter from Python 3.1?

"Changed in version **2.7**: Added Counter and OrderedDict."

That is still ahead of the curve though.

Cheers,
Chris



More information about the Python-list mailing list