Skip to content

Fix pybind11 deprecation warnings #368

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

martinRenou
Copy link
Member

Fix #365

@SylvainCorlay
Copy link
Member

Hum, too bad it is deprecated. I found the previous API simpler.

How about we keep the previous API call in a comment, and ask upstream if they would be OK de-deprecating it.

@martinRenou
Copy link
Member Author

I agree, I opened a PR simplifying it a bit: pybind/pybind11#2717

@SylvainCorlay
Copy link
Member

Ah, I was opening pybind/pybind11#2718 at the same time.

@@ -32,6 +32,11 @@ namespace nl = nlohmann;

namespace xpyt
{
py::module create_module(const std::string& module_name)
{
return py::module_::create_extension_module(module_name, nullptr, new py::module_::module_def);
Copy link
Member

Choose a reason for hiding this comment

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

should be

return py::module_::create_extension_module(module_name.c_str(), nullptr, new py::module_::module_def);

Signed-off-by: martinRenou <[email protected]>
@JohanMabille JohanMabille merged commit 9f47f98 into jupyter-xeus:master Dec 11, 2020
@martinRenou martinRenou deleted the fix_warnings branch December 11, 2020 17:42
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.

Deprecation warnings from pybind11
3 participants