Title: Bug in flags2_asyncio.py (and flags3_asyncio.py) reporting · Issue #32 · fluentpython/example-code-2e · GitHub
Open Graph Title: Bug in flags2_asyncio.py (and flags3_asyncio.py) reporting · Issue #32 · fluentpython/example-code-2e
X Title: Bug in flags2_asyncio.py (and flags3_asyncio.py) reporting · Issue #32 · fluentpython/example-code-2e
Description: First, let me thank you very much for this great book! Fluent Python is very pedagogical, informative and quite a pleasure to read. So, I have been quite surprised to encounter a bug when running flags2_asyncio.py, in the error accountin...
Open Graph Description: First, let me thank you very much for this great book! Fluent Python is very pedagogical, informative and quite a pleasure to read. So, I have been quite surprised to encounter a bug when running f...
X Description: First, let me thank you very much for this great book! Fluent Python is very pedagogical, informative and quite a pleasure to read. So, I have been quite surprised to encounter a bug when running f...
Opengraph URL: https://github.com/fluentpython/example-code-2e/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in flags2_asyncio.py (and flags3_asyncio.py) reporting","articleBody":"First, let me thank you very much for this great book! Fluent Python is very pedagogical, informative and quite a pleasure to read.\r\n\r\nSo, I have been quite surprised to encounter a bug when running flags2_asyncio.py, in the error accounting in the supervisor function. After a first error happens, all downloads are counted as erroneous, even when they are in fact successful. This is because the \"error\" variable is never reset after entering the for loop.\r\nThis can be fixed simply by adding \"else: error = None\" at the end of the try/except (parallel to what you do in flags2_threadpool.py and flags2_asyncio_executor.py).\r\n\r\nThis bug is also present in flags3_asyncio.py.\r\n\r\n(I am using Python3.10.)\r\n\r\nA big thank you again!","author":{"url":"https://github.com/jgc31","@type":"Person","name":"jgc31"},"datePublished":"2022-12-20T16:24:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/32/example-code-2e/issues/32"}
| 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:2a0fdbe9-e5d0-e42b-ea64-6633d264169f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0E8:50BCD:450637A:5FE4B65:69714A9C |
| html-safe-nonce | 112c349d1205b2845822267f97355ae6fa6f8c06c0b5299861b84f1027796e94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEU4OjUwQkNEOjQ1MDYzN0E6NUZFNEI2NTo2OTcxNEE5QyIsInZpc2l0b3JfaWQiOiIxNjIzOTMzNDIyOTYwMTc1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d450bb42a48d42ccb89c9c478d76a94a1739712a0146066ed4db206226a203d8 |
| hovercard-subject-tag | issue:1504849548 |
| 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/fluentpython/example-code-2e/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbd215b772ed11ac4ddea3b1d984cb1463814c08f6c014dab1682853ab9bde9c/fluentpython/example-code-2e/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbd215b772ed11ac4ddea3b1d984cb1463814c08f6c014dab1682853ab9bde9c/fluentpython/example-code-2e/issues/32 |
| og:image:alt | First, let me thank you very much for this great book! Fluent Python is very pedagogical, informative and quite a pleasure to read. So, I have been quite surprised to encounter a bug when running f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgc31 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9bd14a55b65b030988a89787ed340c0f040258c3240af6941d85f740f21629a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/fluentpython/example-code-2e git https://github.com/fluentpython/example-code-2e.git |
| octolytics-dimension-user_id | 9216311 |
| octolytics-dimension-user_login | fluentpython |
| octolytics-dimension-repository_id | 176997413 |
| octolytics-dimension-repository_nwo | fluentpython/example-code-2e |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 176997413 |
| octolytics-dimension-repository_network_root_nwo | fluentpython/example-code-2e |
| 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 | 24a7109a3a584a05e29240fcc1ba60220deccdb8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width