Title: Array instantiation does not work with clean syntax · Issue #251 · pythonnet/pythonnet · GitHub
Open Graph Title: Array instantiation does not work with clean syntax · Issue #251 · pythonnet/pythonnet
X Title: Array instantiation does not work with clean syntax · Issue #251 · pythonnet/pythonnet
Description: According to readme array can be instantiated like this: http://pythonnet.github.io/readme.html from System import Array myarray = Array[int](10) However this syntax stopped working and instead need to use one of two options: list(Array....
Open Graph Description: According to readme array can be instantiated like this: http://pythonnet.github.io/readme.html from System import Array myarray = Array[int](10) However this syntax stopped working and instead nee...
X Description: According to readme array can be instantiated like this: http://pythonnet.github.io/readme.html from System import Array myarray = Array[int](10) However this syntax stopped working and instead nee...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/251
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Array instantiation does not work with clean syntax","articleBody":"According to readme array can be instantiated like this:\n\nhttp://pythonnet.github.io/readme.html\n\n```\nfrom System import Array\nmyarray = Array[int](10)\n```\n\nHowever this syntax stopped working and instead need to use one of two options:\n\n```\nlist(Array.CreateInstance(int,10)) # [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n```\n\nor\n\n```\nlist(Array[int](range(10))) #[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n```\n","author":{"url":"https://github.com/den-run-ai","@type":"Person","name":"den-run-ai"},"datePublished":"2016-08-30T09:55:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/251/pythonnet/issues/251"}
| 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:b688d01f-f99f-a2d5-b774-7fb20da158cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6C2:2F377C:2284284:2E2C419:69706288 |
| html-safe-nonce | 1bebf5ac0c443921b7e7daa6d0ad7d593cc9c3e2555162623b112758ecbbab12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkMyOjJGMzc3QzoyMjg0Mjg0OjJFMkM0MTk6Njk3MDYyODgiLCJ2aXNpdG9yX2lkIjoiMTY1ODE2NDk3OTI4Nzc0NTE2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 348b625caf38120aabb857c660bf6278c953f6f961f1296af016a18982443823 |
| hovercard-subject-tag | issue:173977093 |
| 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/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a8420f7c9a226b5b965f16f3d489237b4441a29ba6caa60f1df67a92aabae73/pythonnet/pythonnet/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a8420f7c9a226b5b965f16f3d489237b4441a29ba6caa60f1df67a92aabae73/pythonnet/pythonnet/issues/251 |
| og:image:alt | According to readme array can be instantiated like this: http://pythonnet.github.io/readme.html from System import Array myarray = Array[int](10) However this syntax stopped working and instead nee... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | den-run-ai |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width