X Tutup
The Wayback Machine - https://web.archive.org/web/20200906154400/https://github.com/MagicStack/uvloop/pull/310/
Skip to content
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

Expose uv_loop_t pointer for integration with other C-extensions #310

Open
wants to merge 1 commit into
base: master
from

Conversation

@pranavtbhat
Copy link

pranavtbhat commented Jan 17, 2020

This PR adds a couple of functions to expose the raw uvloop pointer as int/pycapsule. #307

I can remove the int one if we feel it's not required.

@pranavtbhat pranavtbhat requested a review from 1st1 Jan 17, 2020
@alexhultman
Copy link

alexhultman commented Jan 17, 2020

uint64_t is not guaranteed to be the size of void *, why not use the dedicated feature and get it right with one single function?

@pranavtbhat pranavtbhat force-pushed the pranavtbhat:expose-pointer branch from becc37c to 628d590 Jan 21, 2020
@pranavtbhat
Copy link
Author

pranavtbhat commented Jan 21, 2020

@1st1 Your thoughts on pycapsule vs int?

@pranavtbhat
Copy link
Author

pranavtbhat commented Jan 29, 2020

The build failure looks unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.
X Tutup