[issue34497] Remove needless set operator restriction

2018-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Dan, we're going to pass on this one. The current behavior was an intentional design choice by Guido and reflects a careful balance between some difficult trade-offs. An early and permanent mistake in Python's design is that list.__iadd__() and

[issue34497] Remove needless set operator restriction

2018-08-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34497] Remove needless set operator restriction

2018-08-25 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34497] Remove needless set operator restriction

2018-08-25 Thread Dan Snider
Change by Dan Snider : -- keywords: +patch pull_requests: +8394 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34497] Remove needless set operator restriction

2018-08-25 Thread Dan Snider
New submission from Dan Snider : I only just now realized that `dict.fromkeys('abc').keys() - 'bc'` returns {'a'} instead of raising an error like {*'abc'} - 'bc' would, which is really quite handy. The __xor__, __and__, and __sub__ methods of dict_keys (and items, assuming no there are no