Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use pybind11 in _c_internal_utils module#26794

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 2 commits intomatplotlib:mainfromQuLogic:internal-pybind11
Nov 10, 2023

Conversation

QuLogic
Copy link
Member

PR summary

I changed to a C++ file, in order to use pybind11, though I'm not sure if the name should change. I also made theHWND into a capsule so we could check types a bit more stringently, though this is assuming no-one ever wants to callSetForegroundWindow with a handle obtained elsewhere.

This depends on the Meson PR, as it was much easier to iterate with its automatic re-compile in editable installs.

PR checklist

@tacaswell
Copy link
Member

I think changing to a capsule is a good idea (maybe we want an API change note?).

I lean to leaving the name. Even though it is cpp, Python still calls them "C-extensions" so being a bit imprecise and leaving the name as_c_internal_utils seems fine.

@QuLogic
Copy link
MemberAuthor

I think changing to a capsule is a good idea (maybe we want an API change note?).

It is private at least, so no need?

This requires a minor bit of typecasting as in the `_tkagg.cpp` file.This is a separate commit from the pybind11 change to improve renamedetection.
Copy link
Member

@ianthomas23ianthomas23 left a comment

Choose a reason for hiding this comment

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

I'd be inclined to remove the 4 uses ofvoid in function argument lists now that these functions are C++ rather than C, but I don't feel strongly about this.

@oscargus
Copy link
Member

Let's merge this and the voids can possibly be handled later.

@oscargusoscargus merged commitc0e9ebc intomatplotlib:mainNov 10, 2023
@QuLogicQuLogic deleted the internal-pybind11 branchNovember 14, 2023 00:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ianthomas23ianthomas23ianthomas23 approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@tacaswell@oscargus@ianthomas23

[8]ページ先頭

©2009-2025 Movatter.jp