Skip to content

Special Parameter not Converting Correctly #916

Closed

Description

@0xBEEBAD

Environment

  • Pythonnet version: latest
  • Python version: 3.7.4
  • Operating System: Win10 1903

Details

  • Describe what you were trying to get done.
    class logger
    {
    public static void error(params object[] msgs)
    {
    //
    }
    }

    In Pyscript:
    logger.error("helloworld")

    the parameter msgs in C# stack, will become ['h', 'e', 'l', ..., 'd']

    Conclusion: parameter is not converted correctly.

Activity

  1. Cronan commented on Jul 23, 2019

    @Cronan
    Contributor

    As a workaround, please try:

    logger.error(new object[] { "helloworld" })
    
  2. 0xBEEBAD commented on Jul 23, 2019

    @0xBEEBAD
    Author

    As a workaround, please try:

    logger.error(new object[] { "helloworld" })
    

    Yes, I used the alternative way to bypass that bug.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions