|
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. |
There was a problem hiding this comment.
It seems others as not as concerned as me about identifiers, so I suppose we can move forward here. lgtm except for a few nits.
|
|
||
| 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.
No parens after the function name.
| for *thread_id*. | ||
|
|
||
| .. warning:: | ||
| Passing an invalid or expired thread_id may result in |
| PyErr_SetFromErrno(PyExc_OSError); | ||
| return NULL; | ||
| } | ||
| return PyLong_FromLong((long)clk_id); |
There was a problem hiding this comment.
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