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

Fix wrong array instantiation syntax#17

Closed
christabella wants to merge 1 commit intopythonnet:masterfrom
christabella:patch-1
Closed

Fix wrong array instantiation syntax#17
christabella wants to merge 1 commit intopythonnet:masterfrom
christabella:patch-1

Conversation

@christabella
Copy link
Contributor

Otherwise it throwsTypeError: Cannot convert 10 to System.Int32[]

Documented inpythonnet/pythonnet#788 andpythonnet/pythonnet#251

Otherwise it throws `TypeError: Cannot convert 10 to System.Int32[]`Documented inpythonnet/pythonnet#788 andpythonnet/pythonnet#251
@dnfadmin
Copy link

dnfadmin commentedNov 22, 2020
edited
Loading

CLA assistant check
All CLA requirements met.

@lostmsu
Copy link
Member

lostmsu commentedNov 23, 2020
edited
Loading

I think the sample is correct, and Python.NET itself needs to be fixed if this is not working. This code looks like it is supposed to create an array of 10int. E.g. it should be equivalent ofnew int[10].

myarray = Array[int](10)

filmor and christabella reacted with thumbs up emoji

@lostmsu
Copy link
Member

Published fix for Python.NET here:pythonnet/pythonnet#1291

@christabella
Copy link
ContributorAuthor

Thank you for pushing the fix

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@christabella@dnfadmin@lostmsu

[8]ページ先頭

©2009-2026 Movatter.jp