| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Sorry, something went wrong.
There was a problem hiding this comment.
Let's remove this line here. This is being discussed in PR16101 and very likely the documentation will change to indicate that it's not needed
Sorry, something went wrong.
There was a problem hiding this comment.
Let's follow what most extensions do and return NULL if this fails. An example of this is: _localemodule
Sorry, something went wrong.
|
Take a look at the following URL and add a NEWS file about your change: https://devguide.python.org/committing/#what-s-new-and-news-entries Also, change your title to: "Update audioop.c to PEP-384" Like: PR15975 |
Sorry, something went wrong.
There was a problem hiding this comment.
A couple of changes.
Sorry, something went wrong.
|
Thanks for the review @eduardo-elizondo ! |
Sorry, something went wrong.
|
LOL reading my title again, I was looking at the zlib diff and it was late on a friday smh :| |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
| Update audioop extension module to conform to PEP-384 | |
| Update audioop extension module to use the stable ABI (PEP-384) |
This is a bit of a pet peeve of mine: PEP numbers are only understandable to people who work with that particular PEP. The What's New document deserves better :)
Sorry, something went wrong.
There was a problem hiding this comment.
_audioopstate_global should be unnecessary. The module is readily available at all call sites (except for two helper functions whose callers have the module ready).
Using _audioopstate(module) instead should be both faster and more future-proof (see PEP 489, multi-phase init).
Sorry, something went wrong.
There was a problem hiding this comment.
For all three functions, the module state may be NULL. Please check the possibility.
(AudioopError may be NULL as well, but the Py_VISIT/Py_CLEAR macros deal with that.)
Sorry, something went wrong.
There was a problem hiding this comment.
This is unnecessary; the import mechanism should ensure only one copy of the extension module is imported.
Sorry, something went wrong.
|
cc @Dormouse759, this might be interesting to you. |
Sorry, something went wrong.
|
Thanks for the detailed review @encukou - made those changes! |
Sorry, something went wrong.
|
@encukou - Mind taking another look? |
Sorry, something went wrong.
|
Don't mind at all! Thanks! |
Sorry, something went wrong.
|
Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected.. |
Sorry, something went wrong.
|
@zooba What's the best way to get Azure Pipelines to run on this PR? |
Sorry, something went wrong.
|
@tkieft: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
|
Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected.. |
Sorry, something went wrong.
|
@tkieft: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
|
Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected.. |
Sorry, something went wrong.
|
@tkieft: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue38303
Automerge-Triggered-By: @encukou