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

Adding more C# examples#12

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
filmor merged 2 commits intopythonnet:masterfromjbw3:csharp-examples
Aug 21, 2018
Merged

Conversation

jbw3
Copy link

Most of the examples show how to use a .NET library from Python. However, there are not many that show how to use Python in C#, so I've added several.

README.md Outdated
to use Python:

```csharp
IntPtr gilState = PythonEngine.AcquireLock();
Copy link
Member

Choose a reason for hiding this comment

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

We should not encourage this, thePy.GIL part should be enough.

README.md Outdated

// create a Python variable "person"
PyDict locals = new PyDict();
locals["person"] = pyPerson;
Copy link
Member

Choose a reason for hiding this comment

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

We have thePyScope interface to make this a bit easier.

@jbw3
Copy link
Author

I have addressed the comments.

@filmor
Copy link
Member

Great, thank you very much :)

@filmorfilmor merged commitd304a5c intopythonnet:masterAug 21, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jbw3@filmor

[8]ページ先頭

©2009-2025 Movatter.jp