Skip to content

Fix: fix hello world example for python 3.12#98

Merged
mikeas1 merged 5 commits intomainfrom
updates
May 23, 2025
Merged

Fix: fix hello world example for python 3.12#98
mikeas1 merged 5 commits intomainfrom
updates

Conversation

@pstephengoogle
Copy link
Contributor

There was a race condition based on when the generator yielded with respect to when the queue was closed.

- add case statement to use the asyncio.Queue.shutdown method for 3.13+
- add special handling to allow for similar semantics as
  asyncio.Queue.shutdown for 3.12

Tested on multiple samples in the a2a repo and some examples in this
repo
@pstephengoogle pstephengoogle requested a review from a team as a code owner May 22, 2025 23:43
@pstephengoogle
Copy link
Contributor Author

This fixes #98

@mikeas1 mikeas1 merged commit 536e4a1 into main May 23, 2025
6 checks passed
@mikeas1 mikeas1 deleted the updates branch May 23, 2025 00:17
martimfasantos pushed a commit to martimfasantos/a2a-python that referenced this pull request May 23, 2025
* feat: Update to support python 3.12

- add case statement to use the asyncio.Queue.shutdown method for 3.13+
- add special handling to allow for similar semantics as
  asyncio.Queue.shutdown for 3.12

Tested on multiple samples in the a2a repo and some examples in this
repo

* Change to 3.10 and provided detailed description about event queue usage

* Fix race condition in python <= 3.12

* fix merge conflict

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants