Message253953
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. |
|
Date |
User |
Action |
Args |
2015-11-03 00:04:31 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, r.david.murray, rmalouf |
2015-11-03 00:04:31 | rhettinger | set | messageid: <1446509071.54.0.713217506478.issue25535@psf.upfronthosting.co.za> |
2015-11-03 00:04:31 | rhettinger | link | issue25535 messages |
2015-11-03 00:04:31 | rhettinger | create | |
|