Title: `test_itertools.py` does not test infinite iterable for `itertools.chain.from_iterable` · Issue #93814 · python/cpython · GitHub
Open Graph Title: `test_itertools.py` does not test infinite iterable for `itertools.chain.from_iterable` · Issue #93814 · python/cpython
X Title: `test_itertools.py` does not test infinite iterable for `itertools.chain.from_iterable` · Issue #93814 · python/cpython
Description: Bug report itertools.chain.from_iterable is safe to use with infinite iterable, but no test exists. example: chain.from_iterable(repeat(range(5))) Your environment CPython versions tested on: 3.10.4 and current main branch Operating syst...
Open Graph Description: Bug report itertools.chain.from_iterable is safe to use with infinite iterable, but no test exists. example: chain.from_iterable(repeat(range(5))) Your environment CPython versions tested on: 3.10....
X Description: Bug report itertools.chain.from_iterable is safe to use with infinite iterable, but no test exists. example: chain.from_iterable(repeat(range(5))) Your environment CPython versions tested on: 3.10....
Opengraph URL: https://github.com/python/cpython/issues/93814
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_itertools.py` does not test infinite iterable for `itertools.chain.from_iterable`","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n**Bug report**\r\n\r\n`itertools.chain.from_iterable` is safe to use with infinite iterable, but no test exists.\r\n\r\nexample:\r\n```python\r\nchain.from_iterable(repeat(range(5)))\r\n```\r\n\r\n**Your environment**\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on:\r\n`3.10.4` and current `main` branch\r\n\r\n- Operating system and architecture:\r\nN/A\r\n","author":{"url":"https://github.com/youknowone","@type":"Person","name":"youknowone"},"datePublished":"2022-06-14T15:30:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/93814/cpython/issues/93814"}
| 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:f81e2e38-05ed-ece8-8d9f-0f20df22d8ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A222:2728FC:A2A3BC:DA7499:69697E1E |
| html-safe-nonce | 2e3479f03a81ce29eb62101e532764b47fa13b82c3f0a56e20d13fe42d3f0380 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjIyOjI3MjhGQzpBMkEzQkM6REE3NDk5OjY5Njk3RTFFIiwidmlzaXRvcl9pZCI6IjYxNjI1MTIzNDMyODQxNTM4ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8cd0165467164c9ddea0a469146b91e9cdea119ea17602c78a96cea8dbf247c4 |
| hovercard-subject-tag | issue:1270984946 |
| 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/93814/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1de44d9e4f7386a1bae16b0cf72d397ac6a3e6adbf9336298e27b62948d3b1a8/python/cpython/issues/93814 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1de44d9e4f7386a1bae16b0cf72d397ac6a3e6adbf9336298e27b62948d3b1a8/python/cpython/issues/93814 |
| og:image:alt | Bug report itertools.chain.from_iterable is safe to use with infinite iterable, but no test exists. example: chain.from_iterable(repeat(range(5))) Your environment CPython versions tested on: 3.10.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | youknowone |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width