Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixerror variable not being reset when failure in a coroutine call in flags2_asyncio.py#35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ramalho merged 1 commit intofluentpython:masterfromcharlielito:patch-1
May 19, 2025

Conversation

charlielito
Copy link
Contributor

In theasyncio example in flags2_asyncio.py there is a bug when a call to a coroutine in the loop fails and the next one has success, theerror variable doesn't get reset and it still thinks it got an error, and updates thecounter[status] with the wrong value

Fix `error` variable not being reset when a successful coroutine call
@charlielitocharlielito changed the titleFixerror variable not being reset when a successful coroutine call in flags2_asyncio.pyFixerror variable not being reset when with a failure in a coroutine call in flags2_asyncio.pyMar 26, 2023
@charlielitocharlielito changed the titleFixerror variable not being reset when with a failure in a coroutine call in flags2_asyncio.pyFixerror variable not being reset when failure in a coroutine call in flags2_asyncio.pyMar 26, 2023
@ramalhoramalho merged commitf355aa3 intofluentpython:masterMay 19, 2025
@ramalho
Copy link
Member

Thanks for this contribution,@charlielito !

charlielito reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@charlielito@ramalho

[8]ページ先頭

©2009-2025 Movatter.jp