
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2019-06-10 22:01 byAnthony Sottile, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 13965 | merged | rhettinger,2019-06-11 06:27 | |
| PR 13967 | merged | miss-islington,2019-06-11 08:24 | |
| PR 13968 | merged | rhettinger,2019-06-11 08:40 | |
| Messages (5) | |||
|---|---|---|---|
| msg345147 -(view) | Author: Anthony Sottile (Anthony Sottile)* | Date: 2019-06-10 22:01 | |
This is a regression from python2.x behaviour:$ python2Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> x = set()>>> x.difference(123)Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: 'int' object is not iterable$ python3.8Python 3.8.0b1 (default, Jun 6 2019, 03:44:52) [GCC 7.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> x = set()>>> x.difference(123)set()The regression appears to be introduced in this patch:4103e4dfbcehttps://github.com/python/cpython/commit/4103e4dfbce | |||
| msg345181 -(view) | Author: Raymond Hettinger (rhettinger)*![]() | Date: 2019-06-11 05:25 | |
Nice catch. Thanks. | |||
| msg345199 -(view) | Author: Raymond Hettinger (rhettinger)*![]() | Date: 2019-06-11 08:16 | |
New changeset1f11cf9521114447b3e32e2ac88f075ffaa37555 by Raymond Hettinger in branch 'master':bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965)https://github.com/python/cpython/commit/1f11cf9521114447b3e32e2ac88f075ffaa37555 | |||
| msg345200 -(view) | Author: Raymond Hettinger (rhettinger)*![]() | Date: 2019-06-11 08:41 | |
New changeset583ff84351e528976aa93d383e5a81aee9f3bac3 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8':bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) (GH-13967)https://github.com/python/cpython/commit/583ff84351e528976aa93d383e5a81aee9f3bac3 | |||
| msg345205 -(view) | Author: Raymond Hettinger (rhettinger)*![]() | Date: 2019-06-11 09:01 | |
New changeset1b615b2f035d207941e44259a92ed0bdcc56ac45 by Raymond Hettinger in branch '3.7':[3.7]bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) (GH-13968)https://github.com/python/cpython/commit/1b615b2f035d207941e44259a92ed0bdcc56ac45 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:16 | admin | set | github: 81400 |
| 2019-06-11 09:01:44 | rhettinger | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2019-06-11 09:01:27 | rhettinger | set | messages: +msg345205 |
| 2019-06-11 08:41:30 | rhettinger | set | messages: +msg345200 |
| 2019-06-11 08:40:43 | rhettinger | set | pull_requests: +pull_request13835 |
| 2019-06-11 08:24:08 | miss-islington | set | pull_requests: +pull_request13834 |
| 2019-06-11 08:16:06 | rhettinger | set | messages: +msg345199 |
| 2019-06-11 06:27:59 | rhettinger | set | keywords: +patch stage: patch review pull_requests: +pull_request13832 |
| 2019-06-11 05:25:04 | rhettinger | set | priority: normal -> high assignee:rhettinger messages: +msg345181 |
| 2019-06-10 22:01:36 | Anthony Sottile | create | |