Title: Converter works for IList
Open Graph Title: Converter works for IList
X Title: Converter works for IList
Description: 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 b...
Open Graph Description: 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().IsGeneric...
X Description: 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.GetTyp...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Converter works for IList\u003cT\u003e but not for T[]","articleBody":"### Environment\r\n\r\n- Pythonnet version: \r\n- Python version: all\r\n- Operating System: all\r\n\r\n### Details\r\n\r\nI lost hours on this.\r\nconverter.ToPython() does not enter condition \"if (value is IList \u0026\u0026 value.GetType().IsGenericType)\" for arrays so arrays that could be converted to python lists are not being converted.\r\n\r\nI think it should also work for any generic and not generic ICollection and any Array.\r\n\r\nInstead, it currently treats it as a generic PyObject.\r\n\r\nOtherwise, great job!\r\n","author":{"url":"https://github.com/jjaskulowski","@type":"Person","name":"jjaskulowski"},"datePublished":"2018-01-19T07:24:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/601/pythonnet/issues/601"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:800b3aac-2a17-73c8-04c7-e00e9b97bba9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0A8:38B81A:2F98461:402B6E7:697062CF |
| html-safe-nonce | c885bf713d170be7a8e1c90409819ae308936e422bed60e264a6fbb18cf3fbac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEE4OjM4QjgxQToyRjk4NDYxOjQwMkI2RTc6Njk3MDYyQ0YiLCJ2aXNpdG9yX2lkIjoiODEzMjk2NDcyMzYwODAxOTY2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6869eba55c39e170607075cfd7641d7361b32f1ab77aa630006ef195e165d0df |
| hovercard-subject-tag | issue:289884696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b77717c7fdc289e7749b8db4e43693182cd619b2cff5444a1d3032ecf4ea75a/pythonnet/pythonnet/issues/601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b77717c7fdc289e7749b8db4e43693182cd619b2cff5444a1d3032ecf4ea75a/pythonnet/pythonnet/issues/601 |
| og:image:alt | 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().IsGeneric... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jjaskulowski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width