FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-38303: Make audioop extension module PEP-384 compatible by tkieft · Pull Request #16497 · python/cpython · GitHub

Repository navigation

bpo-38303: Make audioop extension module PEP-384 compatible - #16497

Merged
miss-islington merged 2 commits into
python:masterfrom
tkieft:pep384/audioop
Oct 22, 2019
Merged

miss-islington merged 2 commits into
python:masterfrom
tkieft:pep384/audioop

Conversation

tkieft commented Sep 30, 2019 •
edited by miss-islington
Loading

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

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 Missing

Our records indicate the following people have not signed the CLA:

@tkieft

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
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

Comment thread Modules/audioop.c Outdated

eduardo-elizondo Sep 30, 2019 •
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Comment thread Modules/audioop.c Outdated
Comment thread Modules/audioop.c Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Let's follow what most extensions do and return NULL if this fails. An example of this is: _localemodule

Copy link
Copy Markdown
Contributor

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

eduardo-elizondo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

A couple of changes.

tkieft commented Sep 30, 2019

Copy link
Copy Markdown
Contributor Author

Thanks for the review @eduardo-elizondo !

tkieft commented Sep 30, 2019

Copy link
Copy Markdown
Contributor Author

LOL reading my title again, I was looking at the zlib diff and it was late on a friday smh :|

tkieft changed the title bpo-38303: Make audioop extension module zlib-compatible bpo-38303: Make audioop extension module PEP-384 compatible Sep 30, 2019

eduardo-elizondo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

Copy link
Copy Markdown
Contributor

cc: @tiran, @encukou could you take a quick look?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
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 :)

Comment thread Modules/audioop.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

_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).

Comment thread Modules/audioop.c Outdated
Comment on lines 1906 to 1922

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.)

Comment thread Modules/audioop.c Outdated
Comment on lines 1936 to 1941

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is unnecessary; the import mechanism should ensure only one copy of the extension module is imported.

encukou commented Oct 8, 2019

Copy link
Copy Markdown
Member

cc @Dormouse759, this might be interesting to you.

tkieft commented Oct 10, 2019

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed review @encukou - made those changes!

tkieft commented Oct 21, 2019

Copy link
Copy Markdown
Contributor Author

@encukou - Mind taking another look?

encukou left a comment •
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@tkieft, I hope you don't mind your name in the ACKs. If so, this is good to merge.

tkieft commented Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

Don't mind at all! Thanks!

Copy link
Copy Markdown
Contributor

Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected..

encukou commented Oct 22, 2019

Copy link
Copy Markdown
Member

@zooba What's the best way to get Azure Pipelines to run on this PR?
I see some mailing list discussion on this from May; is "close & re-open" is still the way to go? Perhaps long-term enough to document it in the devguide?

Copy link
Copy Markdown
Contributor

@tkieft: Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor

Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected..

Copy link
Copy Markdown
Contributor

@tkieft: Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor

Sorry, I can't merge this PR. Reason: Required status check "Azure Pipelines PR" is expected..

Copy link
Copy Markdown
Contributor

@tkieft: Status check is done, and it's a success ✅ .

miss-islington merged commit f548a3e into python:master Oct 22, 2019
tkieft deleted the pep384/audioop branch October 22, 2019 13:10
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL