diff options
author | Raymond Hettinger <python@rcn.com> | 2008-11-16 11:44:54 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-11-16 11:44:54 (GMT) |
commit | 7d99f09f89002d9afbf00befd7b2d78f4f9f17d8 (patch) | |
tree | 33150227e0381dea3bd9712c15e56ec0eaf19601 /Misc | |
parent | 4a1f593df5d4733831a1c4f03ca40c701433c43d (diff) | |
download | cpython-7d99f09f89002d9afbf00befd7b2d78f4f9f17d8.zip cpython-7d99f09f89002d9afbf00befd7b2d78f4f9f17d8.tar.gz cpython-7d99f09f89002d9afbf00befd7b2d78f4f9f17d8.tar.bz2 |
Issue #1721812: Binary operations and copy operations on set/frozenset
subclasses need to return the base type, not the subclass itself.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,11 @@ What's New in Python 3.0 release candiate 3? Core and Builtins ----------------- +- Issue #1721812: Binary set operations and copy() returned the input type + instead of the appropriate base type. This was incorrect because set + subclasses would be created without their __init__() method being called. + The corrected behavior brings sets into line with lists and dicts. + - Issue #4296: Fix PyObject_RichCompareBool so that "x in [x]" evaluates to True, even when x doesn't compare equal to itself. This was a regression from 2.6. |