A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2011-October/113891.html below:

[Python-Dev] counterintuitive behavior (bug?) in Counter with +=

[Python-Dev] counterintuitive behavior (bug?) in Counter with += [Python-Dev] counterintuitive behavior (bug?) in Counter with +=Petri Lehtinen petri at digip.org
Thu Oct 6 17:46:37 CEST 2011
Lars Buitinck wrote:
>     >>> from collections import Counter
>     >>> a = Counter([1,2,3])
>     >>> b = a
>     >>> a += Counter([3,4,5])
>     >>> a is b
>     False
> 
> would become
> 
>     # snip
>     >>> a is b
>     True

Sounds like a good idea to me. You should open an issue in the tracker
at http://bugs.python.org/.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4