Title: .NET class instances considered Iterable · Issue #1234 · pythonnet/pythonnet · GitHub
Open Graph Title: .NET class instances considered Iterable · Issue #1234 · pythonnet/pythonnet
X Title: .NET class instances considered Iterable · Issue #1234 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.5.0 Python version: 3.7 Operating System: Windows Details All .NET class instances are considered instances of collections.abc.Iterable. namespace Python.Test { public class Empty { } } def test_not_Itera...
Open Graph Description: Environment Pythonnet version: 2.5.0 Python version: 3.7 Operating System: Windows Details All .NET class instances are considered instances of collections.abc.Iterable. namespace Python.Test { pub...
X Description: Environment Pythonnet version: 2.5.0 Python version: 3.7 Operating System: Windows Details All .NET class instances are considered instances of collections.abc.Iterable. namespace Python.Test { pub...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1234
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".NET class instances considered Iterable","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.5.0\r\n- Python version: 3.7\r\n- Operating System: Windows\r\n\r\n### Details\r\n\r\nAll .NET class instances are considered instances of `collections.abc.Iterable`.\r\n\r\n```C#\r\n\r\nnamespace Python.Test {\r\n public class Empty { }\r\n}\r\n```\r\n\r\n```python\r\n\r\ndef test_not_Iterable():\r\n \"\"\"Test regular .NET objects are not iterable\"\"\"\r\n from Python.Test import Empty\r\n from collections.abc import Iterable\r\n\r\n assert (not isinstance(Empty(), Iterable))\r\n```\r\n\r\nThe test is expected to pass, but fails:\r\n\r\n```\r\n def test_not_Iterable():\r\n \"\"\"Test regular .NET objects are not iterable\"\"\"\r\n from Python.Test import Empty\r\n from collections.abc import Iterable\r\n\r\n\u003e assert (not isinstance(Empty(), Iterable))\r\nE AssertionError: assert not True\r\nE + where True = isinstance(\u003cPython.Test.Empty object at 0x0000022D3E6DE5C8\u003e, \u003cclass 'collections.abc.Iterable'\u003e)\r\nE + where \u003cPython.Test.Empty object at 0x0000022D3E6DE5C8\u003e = \u003cclass 'Python.Test.Empty'\u003e()\r\n```\r\n","author":{"url":"https://github.com/danabr","@type":"Person","name":"danabr"},"datePublished":"2020-09-23T12:06:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1234/pythonnet/issues/1234"}
| 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:606757af-4b44-4e40-fdda-93d3e6f0e70b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DDC:2D6BC4:2035E93:2B44F53:69702D9E |
| html-safe-nonce | 45322688a930d1229e363d0b43dbe20d45795824acbbf6eae79d70d249e58dad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RERDOjJENkJDNDoyMDM1RTkzOjJCNDRGNTM6Njk3MDJEOUUiLCJ2aXNpdG9yX2lkIjoiOTEyNDE3MzEyMDMxMzI0MDk5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 367087674566c3e2e0699554f1d1f3ab507ab28fb9dfa5b4a1eb1a4f1d9554ca |
| hovercard-subject-tag | issue:707303804 |
| 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/1234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1bc2f06c5c5ee1c35f5e074a30d21a0de7a789a7bd7afe0e70797610de79752/pythonnet/pythonnet/issues/1234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1bc2f06c5c5ee1c35f5e074a30d21a0de7a789a7bd7afe0e70797610de79752/pythonnet/pythonnet/issues/1234 |
| og:image:alt | Environment Pythonnet version: 2.5.0 Python version: 3.7 Operating System: Windows Details All .NET class instances are considered instances of collections.abc.Iterable. namespace Python.Test { pub... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danabr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01fa379f5de85ef8e791d09724e69709ce9eb9595278316e0a921312dc88e0bc |
| 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 | dda91974c069382b0dfa47b2da7e28bd061c8331 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width