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
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
|
FYI, I signed CLA. Not sure why the label hasn't cleared. |
|
Thanks for the PR. Unfortunately, I think It's a design flaw of |
|
Ah, we meet again. I should have known you wouldn't go easy on me. I've decided to give option 2 a try. I have created https://bugs.python.org/issue31622 to track it, and will be sending a pull request shortly. |
|
|
||
| Return the *clk_id* of the thread-specific CPU-time clock for the specified *thread_id*. | ||
|
|
||
| Use :func:`threading.get_ident()` or the :attr:`~threading.Thread.ident` |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No parens after the function name.
| for *thread_id*. | ||
|
|
||
| .. warning:: | ||
| Passing an invalid or expired thread_id may result in |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
*thread_id*
| PyErr_SetFromErrno(PyExc_OSError); | ||
| return NULL; | ||
| } | ||
| return PyLong_FromLong((long)clk_id); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This cast is superfluous. If clockid_t ends up being something large, it's probably good to get the compiler warning for the implicit cast.
|
[ping]. did I address all your concerns? |
Modeled on the interface for signal.pthread_kill
https://bugs.python.org/issue31596