Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New PyModule Set method #2323

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

Closed

Conversation

Andrew1Medvedev
Copy link

What does this implement/fix? Explain your changes.

...

Does this close any currently open issues?

...

Any other comments?

...

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Ensure you have signed the .NET Foundation CLA
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

@lostmsu
Copy link
Member

lostmsu commented Feb 27, 2024

Hey guys, can you review this instead: #2330

The intent is to use it via

pyModule.Set("foo", myObject.ToPythonAs<IBar>());

@dmitry-medvedev
Copy link

We used the suggested approach and it seems to work fine on our tests.
Could you please let us know when the new method ToPythonAs is going to be available?

@lostmsu
Copy link
Member

lostmsu commented Feb 28, 2024

It should be available in the next preview (~March 6th)

@lostmsu lostmsu closed this Feb 28, 2024
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.

3 participants