- Notifications
You must be signed in to change notification settings - Fork14
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
README.md Outdated
to use Python: | ||
```csharp | ||
IntPtr gilState = PythonEngine.AcquireLock(); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
I have addressed the comments. |
Great, thank you very much :) |
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.