Visitar URL original
Type conversion changes between 2.1.0dev and 2.1.0 · Issue #236 · pythonnet/pythonnet · GitHub
Skip to content

Type conversion changes between 2.1.0dev and 2.1.0 #236

Description

@josselex

I have a method with the signature
Memory.GetActive(out int s32MemId)
Memory.GetActive(out System.IntPtr ptr)

With 2.1.0dev it was possible to call

_,out=obj.Memory.GetActive(0)

But this now returns

TypeError: No method matches given arguments

and I have to do:

_,out=obj.Memory.GetActive(System.Int32(0))

What changed and why did it change (i did not find something about this change)?
The new code ist much more verbose, is it possible to get the old behaviour back?

Activity

  1. vmuriart commented on Jun 29, 2016

    @vmuriart
    Contributor

    See related #203 and #217

    It was to close a bug, but introduced unexpected behavior

  2. den-run-ai commented on Jun 29, 2016

    @den-run-ai
    Contributor

    First of all #217 is un-merged pull request for parent-child class overloads, which is different from this problem.

    This problem is related to out and ref arguments:

    #227

  3. filmor commented on Jun 9, 2020

    @filmor
    Member

    Since there have not been any updates in quite a while, I'll close this issue. Feel free to reopen and provide a information on the current state.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions