Skip to content

Examples cleanup #568

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 28, 2023
Merged

Examples cleanup #568

merged 4 commits into from
Mar 28, 2023

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Mar 28, 2023

  • It turns out the pygame example doesn't work well together with async Python and can therefore be confusing for someone trying to learn it.
    If pygame is used with asyncio it requires a separate task with a queue for communication. Also see:
    https://github.com/AlexElvers/pygame-with-asyncio/

  • Also, this fixes up the telemetry examples I had broken them previously when removing the deprecated get_event_loop
    calls.

  • And while I was at it, I enabled pycodestyle in CI and fixed up the examples.

Closes #567

It turns out the pygame example doesn't work well together with async
Python and can therefore be confusing for someone trying to learn it.

If pygame is used with asyncio it requires a separate task with a queue
for communication. Also see:
https://github.com/AlexElvers/pygame-with-asyncio/

Signed-off-by: Julian Oes <julian@oes.ch>
I had broken them previously when removing the deprecated get_event_loop
calls.

Signed-off-by: Julian Oes <julian@oes.ch>
This fixes what pycodestyle complains about which was formerly known as
the PEP8 checker.

Signed-off-by: Julian Oes <julian@oes.ch>
@julianoes julianoes changed the title examples cleanup Examples cleanup Mar 28, 2023
@julianoes julianoes force-pushed the pr-example-cleanup branch from 83e0e39 to 9454a9b Compare March 28, 2023 00:39
Signed-off-by: Julian Oes <julian@oes.ch>
@julianoes julianoes force-pushed the pr-example-cleanup branch from 9454a9b to 942834e Compare March 28, 2023 00:41
@julianoes julianoes merged commit 14d431f into main Mar 28, 2023
@julianoes julianoes deleted the pr-example-cleanup branch March 28, 2023 01:07
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.

telemetry.py example fails with gRPC statuscode CANCELLED
2 participants