-
Notifications
You must be signed in to change notification settings - Fork 749
Cannot compile example from tutorial in VS2015 because of named argument #543
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
Comments
For this syntax to work you need to use pythonnet from the master. Note that we are planning to adopt slightly different syntax for calling into numpy arrays: |
I installed managed assembly via nuget as described in "installation" section of wiki. So what do you mean by "to use pythonnet from the master"? |
https://github.com/pythonnet/pythonnet/wiki/Installation
|
@UNdedss that is my bad! The syntax on C# side for keyword arguments is colon sign https://github.com/pythonnet/pythonnet/blob/master/src/embed_tests/TestNamedArguments.cs I fixed this in readme now: More details about this feature in this pull request: |
This looks fixed, so I'm closing this issue. |
Environment
Details
I'm trying to run the first c# example from tutorial, but it looks like my VS2015 doesn't recognize named arguments for for dynamic objects.
Looks like it is the problem of environment, but its resolution will also be useful for other users.
Screenshots
code snippet with compile error:
console output with another issue (possibly related), where dtype of numpy array is printed as "object" instead of "int", printing an array also results in "object":
The text was updated successfully, but these errors were encountered: