FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Same name functions , the pythonnet donl't found right function. · Issue #782 · pythonnet/pythonnet · GitHub

Repository navigation

Same name functions , the pythonnet donl't found right function. #782

Closed

Description

Environment

  • Pythonnet version: 2.3
  • Python version: Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
  • Operating System: win7 x64

Details

  • Same name functions , the pythonnet donl't found right function.
    error info
Traceback (most recent call last):
  File "testdll.py", line 111, in <module>
    ret = _Interpreter.csc(1, filename, paramlist, errMsg)
TypeError: No method matches given arguments

mycode

public int csc(int type, string filename, strtParam[] paramArray, ref string strErr)
public int csc(string filename, strtParam[] paramArray, ref string strErr)
  • Modify code ,use different function name just successed.
    midify code
public int cscPT(int type, string filename, strtParam[] paramArray, ref string strErr)
        {
            return csc(type, filename, paramArray, ref strErr);
        }

Activity

  1. filmor commented on Nov 19, 2018

    Member

    So, the modified code works?

  2. jiftle commented on Nov 19, 2018

    Author

    @filmor
    yes , it work good.

  3. filmor commented on Nov 19, 2018

    Member

    That's strange, I'll try to reproduce it.

  4. jiftle commented on Nov 19, 2018

    Author

    @filmor
    thank you very much, you are good author.

  5. self-assigned this
    on Nov 19, 2018
  6. den-run-ai commented on Nov 19, 2018

    Contributor

    This is from the method overloading pile, let me know if this is not covered by existing items:

    #265

  7. lostmsu commented on Jan 24, 2019

    Member

    Just got this error. Can anyone explain why this happens when one of my overloads has matching number of arguments, and they are all of type object? E.g. surely this one can be called. Or does this error happen also when there's an ambiguity? In the later case, can the error be fixed to indicate that?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL