GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Cannot get correct overload of generic method · Issue #821 · pythonnet/pythonnet Open DescriptionEnvironment
Details
Invoke a generic method with multiple overloads.
On the C# side I have the following generic method with overloads: Variable<T> Variable.Constant<T>(T) VariableArray<T> Variable.Constant<T>(T[]) On the python side, I'm trying to invoke the second overload by doing: a = Variable.Constant(System.Array[System.Double]([1.0, 2.0, 3.0])) But when I check the type of a = Variable.Constant[System.Double](System.Array[System.Double]([1.0, 2.0, 3.0])) but then I get the exception: TypeError: No method matches given arguments for Constant I also tried: a = Variable.Constant.Overloads[System.Double](System.Array[System.Double]([1.0, 2.0, 3.0])) but then I get the exception: TypeError: No match found for signature It seems that there is pull-request (#227) ongoing, but it looks to have been work in progress for quite a while now. Is this is not priority, is there a workaround that I can try? Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |