Skip to content

DOC: update tutorial to use asyncio instead of asyncore - #89

Merged
gvalkov merged 4 commits into
gvalkov:masterfrom
tacaswell:doc_asyncio
May 31, 2018
Merged

gvalkov merged 4 commits into
gvalkov:masterfrom
tacaswell:doc_asyncio

Conversation

@tacaswell

Copy link
Copy Markdown
Contributor

Closes #85

tacaswell added 2 commits May 26, 2018 16:13
See [1] for details.  The expected behavior of `__aiter__` changed in
3.5.2.

This change prevents a warning on 3.5.2 - 3.6.x and an exception in 3.7+

[1] https://www.python.org/dev/peps/pep-0492/#api-design-and-implementation-revisions
@tacaswell

Copy link
Copy Markdown
Contributor Author

I can split this up into several PRs if you prefer.

@gvalkov
gvalkov merged commit 5f043d6 into gvalkov:master May 31, 2018
Comment thread evdev/device.py

import sys
if sys.version_info > (3,):
buffer = memoryview

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found out that memoryview(...).tobytes() works for both Py2 and Py3.

@gvalkov

gvalkov commented May 31, 2018

Copy link
Copy Markdown
Owner

Thanks @tacaswell ! Your contribution is appreciated. I just need to sit down and see for myself how the asyncio API will be changing before rolling out a release with your fixes.

@gvalkov

gvalkov commented Jun 2, 2018

Copy link
Copy Markdown
Owner

Released as part of evdev 1.0.0.

@tacaswell
tacaswell deleted the doc_asyncio branch June 19, 2018 14:22
@tacaswell

Copy link
Copy Markdown
Contributor Author

Your welcome!

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