← Winnitude! Search  ·  Reader Mode (1844 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 28 LINKS

New PyModule Set method by Andrew1Medvedev · Pull Request #2323 · pythonnet/pythonnet

Repository navigation

New PyModule Set method - #2323


Closed
Andrew1Medvedev wants to merge 1 commit into pythonnet:master from Andrew1Medvedev:feature-branch
Closed

New PyModule Set method #2323 Andrew1Medvedev wants to merge 1 commit into pythonnet:master from Andrew1Medvedev:feature-branch

Conversation

Andrew1Medvedev commented Feb 15, 2024



Copy link Copy Markdown

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
New PyModule Set method 1ee0ac8 dmitry-medvedev mentioned this pull request Feb 19, 2024 Allow setting typed objects via PyModule.Set #2311 Closed

lostmsu commented Feb 27, 2024



Copy link Copy Markdown
Member

Hey guys, can you review this instead: #2330

The intent is to use it via

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

dmitry-medvedev commented Feb 27, 2024



Copy link Copy Markdown

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 commented Feb 28, 2024



Copy link Copy Markdown
Member

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

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

3 participants