Title: itertools.chain should evaluate lazily · Issue #3787 · RustPython/RustPython · GitHub
Open Graph Title: itertools.chain should evaluate lazily · Issue #3787 · RustPython/RustPython
X Title: itertools.chain should evaluate lazily · Issue #3787 · RustPython/RustPython
Description: CPython: >>> from itertools import * >>> a = chain.from_iterable(repeat(range(2))) >>> next(a) 0 >>> next(a) 1 >>> next(a) 0 RustPython does not evaluate lazily and the call to from_iterable never returns: >>>>> from itertools import * >...
Open Graph Description: CPython: >>> from itertools import * >>> a = chain.from_iterable(repeat(range(2))) >>> next(a) 0 >>> next(a) 1 >>> next(a) 0 RustPython does not evaluate lazily and the call to from_iterable never ...
X Description: CPython: >>> from itertools import * >>> a = chain.from_iterable(repeat(range(2))) >>> next(a) 0 >>> next(a) 1 >>> next(a) 0 RustPython does not evaluat...
Opengraph URL: https://github.com/RustPython/RustPython/issues/3787
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"itertools.chain should evaluate lazily","articleBody":"CPython:\r\n```\r\n\u003e\u003e\u003e from itertools import *\r\n\u003e\u003e\u003e a = chain.from_iterable(repeat(range(2)))\r\n\u003e\u003e\u003e next(a)\r\n0\r\n\u003e\u003e\u003e next(a)\r\n1\r\n\u003e\u003e\u003e next(a)\r\n0\r\n```\r\n\r\nRustPython does not evaluate lazily and the call to `from_iterable` never returns:\r\n```\r\n\u003e\u003e\u003e\u003e\u003e from itertools import *\r\n\u003e\u003e\u003e\u003e\u003e a = chain.from_iterable(repeat(range(2)))\r\n```","author":{"url":"https://github.com/rng-dynamics","@type":"Person","name":"rng-dynamics"},"datePublished":"2022-06-14T07:11:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3787/RustPython/issues/3787"}
| 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:8beb893e-9ffa-851d-db38-1e2541240a3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB6A:256EA0:3A62B3:4E1110:69697D0B |
| html-safe-nonce | 3ecac32bc3ce5d0077ebe76e8ab56ee50435b2d9419518dcfdef0724e14c32d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjZBOjI1NkVBMDozQTYyQjM6NEUxMTEwOjY5Njk3RDBCIiwidmlzaXRvcl9pZCI6IjYyMDAyMDE4MTA4ODI5NTI0NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d6e6947f682150239436be007702966b81bb052e54d3e7cb47fdfe04119e4d2c |
| hovercard-subject-tag | issue:1270358084 |
| 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/RustPython/RustPython/3787/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf4fc160d3d96509a5fb4e78956256669b3416ba318d27d0d23015c45f959cdc/RustPython/RustPython/issues/3787 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf4fc160d3d96509a5fb4e78956256669b3416ba318d27d0d23015c45f959cdc/RustPython/RustPython/issues/3787 |
| og:image:alt | CPython: >>> from itertools import * >>> a = chain.from_iterable(repeat(range(2))) >>> next(a) 0 >>> next(a) 1 >>> next(a) 0 RustPython does not evaluate lazily and the call to from_iterable never ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rng-dynamics |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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