Title: tuple function gives wrong answer when called on list subclass with custom __iter__ · Issue #67945 · python/cpython · GitHub
Open Graph Title: tuple function gives wrong answer when called on list subclass with custom __iter__ · Issue #67945 · python/cpython
X Title: tuple function gives wrong answer when called on list subclass with custom __iter__ · Issue #67945 · python/cpython
Description: BPO 23757 Nosy @rhettinger, @bitdancer, @serhiy-storchaka Superseder bpo-10977: Concrete object C API considered harmful to subclasses of builtin types Files listwithiter.py: Reproduction test casefix_list_to_tuple.diff: Patch without th...
Open Graph Description: BPO 23757 Nosy @rhettinger, @bitdancer, @serhiy-storchaka Superseder bpo-10977: Concrete object C API considered harmful to subclasses of builtin types Files listwithiter.py: Reproduction test case...
X Description: BPO 23757 Nosy @rhettinger, @bitdancer, @serhiy-storchaka Superseder bpo-10977: Concrete object C API considered harmful to subclasses of builtin types Files listwithiter.py: Reproduction test case...
Opengraph URL: https://github.com/python/cpython/issues/67945
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tuple function gives wrong answer when called on list subclass with custom __iter__","articleBody":"BPO | [23757](https://bugs.python.org/issue23757)\n--- | :---\nNosy | @rhettinger, @bitdancer, @serhiy-storchaka\nSuperseder | \u003cli\u003ebpo-10977: Concrete object C API considered harmful to subclasses of builtin types\u003c/li\u003e\nFiles | \u003cli\u003e[listwithiter.py](https://bugs.python.org/file38663/listwithiter.py \"Uploaded as text/plain at 2015-03-24.08:42:28 by David MacIver\"): Reproduction test case\u003c/li\u003e\u003cli\u003e[fix_list_to_tuple.diff](https://bugs.python.org/file39365/fix_list_to_tuple.diff \"Uploaded as text/plain at 2015-05-14.00:24:28 by @rhettinger\"): Patch without the OP's test\u003c/li\u003e\u003cli\u003e[fix_list_to_tuple_2.diff](https://bugs.python.org/file39404/fix_list_to_tuple_2.diff \"Uploaded as text/plain at 2015-05-17.09:50:51 by @serhiy-storchaka\"): + tests\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/rhettinger'\nclosed_at = \u003cDate 2015-05-17.21:47:59.965\u003e\ncreated_at = \u003cDate 2015-03-24.08:42:29.638\u003e\nlabels = ['easy', 'type-bug', 'library']\ntitle = 'tuple function gives wrong answer when called on list subclass with custom __iter__'\nupdated_at = \u003cDate 2015-05-17.21:47:59.964\u003e\nuser = 'https://bugs.python.org/DavidMacIver'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2015-05-17.21:47:59.964\u003e\nactor = 'rhettinger'\nassignee = 'rhettinger'\nclosed = True\nclosed_date = \u003cDate 2015-05-17.21:47:59.965\u003e\ncloser = 'rhettinger'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2015-03-24.08:42:29.638\u003e\ncreator = 'David MacIver'\ndependencies = []\nfiles = ['38663', '39365', '39404']\nhgrepos = []\nissue_num = 23757\nkeywords = ['patch', 'easy']\nmessage_count = 11.0\nmessages = ['239098', '239138', '239152', '239154', '239161', '243073', '243158', '243159', '243392', '243428', '243429']\nnosy_count = 6.0\nnosy_names = ['rhettinger', 'stub', 'r.david.murray', 'python-dev', 'serhiy.storchaka', 'David MacIver']\npr_nums = []\npriority = 'high'\nresolution = 'fixed'\nstage = 'commit review'\nstatus = 'closed'\nsuperseder = '10977'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue23757'\nversions = ['Python 2.7', 'Python 3.4', 'Python 3.5']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/DavidMacIver","@type":"Person","name":"DavidMacIver"},"datePublished":"2015-03-24T08:42:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/67945/cpython/issues/67945"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b73ec02f-216d-4577-c11c-00b9d27a1034 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2E0:1368EB:2FB81AC:41C1F1A:6A4F1798 |
| html-safe-nonce | b48682f0f62df2445a7037c0820ec10ca0828f5041faec7253161d838f115b35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkUwOjEzNjhFQjoyRkI4MUFDOjQxQzFGMUE6NkE0RjE3OTgiLCJ2aXNpdG9yX2lkIjoiNzMzMTA4NTk4ODYzMjkyNjEwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc0553deb8652a9209215d4d9a1220adba9030bbbd81d5436076499d5c07de6f |
| hovercard-subject-tag | issue:1198933039 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/67945/issue_layout |
| twitter:image | https://opengraph.githubassets.com/578df94d183bdf3593fc10a1ab330e0cf3bc9245ad8adf4c73a8be67260f1075/python/cpython/issues/67945 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/578df94d183bdf3593fc10a1ab330e0cf3bc9245ad8adf4c73a8be67260f1075/python/cpython/issues/67945 |
| og:image:alt | BPO 23757 Nosy @rhettinger, @bitdancer, @serhiy-storchaka Superseder bpo-10977: Concrete object C API considered harmful to subclasses of builtin types Files listwithiter.py: Reproduction test case... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DavidMacIver |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width