Skip to content

Converter works for IList<T> but not for T[] #601

@jjaskulowski

Description

@jjaskulowski

Environment

  • Pythonnet version:
  • Python version: all
  • Operating System: all

Details

I lost hours on this.
converter.ToPython() does not enter condition "if (value is IList && value.GetType().IsGenericType)" for arrays so arrays that could be converted to python lists are not being converted.

I think it should also work for any generic and not generic ICollection and any Array.

Instead, it currently treats it as a generic PyObject.

Otherwise, great job!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy