This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients mark.dickinson, r.david.murray, rhettinger, rmalouf
Date 2015-11-03.00:04:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446509071.54.0.713217506478.issue25535@psf.upfronthosting.co.za>
In-reply-to
Content
The decision was deliberate and matches what we've done elsewhere in Python.   The nearest kin to Counters are sets/frozensets which also behave the same way:

    >>> class S(set):
            pass
    >>> type(S('abc') | S('cdef'))
    <class 'set'>

Mark Dickinson articulated the reasons clearly.   Python has been consistent about this decision from the outset (see array.array or fractions.Fraction for example).

Marking this as "not a bug" and closing.
History
Date User Action Args
2015-11-03 00:04:31rhettingersetrecipients: + rhettinger, mark.dickinson, r.david.murray, rmalouf
2015-11-03 00:04:31rhettingersetmessageid: <1446509071.54.0.713217506478.issue25535@psf.upfronthosting.co.za>
2015-11-03 00:04:31rhettingerlinkissue25535 messages
2015-11-03 00:04:31rhettingercreate