[issue26880] Remove redundant checks from set.__init__

2016-04-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26880] Remove redundant checks from set.__init__

2016-04-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed6345cb08ab by Serhiy Storchaka in branch 'default': Issue #26880: Removed redundant checks in set.__init__. https://hg.python.org/cpython/rev/ed6345cb08ab -- nosy: +python-dev ___ Python tracker

[issue26880] Remove redundant checks from set.__init__

2016-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: LGTM -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mail

[issue26880] Remove redundant checks from set.__init__

2016-04-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: set.__init__ have checks PyAnySet_Check(self) and PySet_Check(self). They are redundant since set.__init__ can't be called for non-set. >>> set.__init__(frozenset(), ()) Traceback (most recent call last): File "", line 1, in TypeError: descriptor '__init