Title: Calling 'params' method with single argument fails · Issue #331 · pythonnet/pythonnet · GitHub
Open Graph Title: Calling 'params' method with single argument fails · Issue #331 · pythonnet/pythonnet
X Title: Calling 'params' method with single argument fails · Issue #331 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.1.0 Python version: 2.7.10 Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601 Details When calling a method with the params keyword with a single argument I get TypeErro...
Open Graph Description: Environment Pythonnet version: 2.1.0 Python version: 2.7.10 Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601 Details When calling a method with the params keywo...
X Description: Environment Pythonnet version: 2.1.0 Python version: 2.7.10 Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601 Details When calling a method with the params keywo...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calling 'params' method with single argument fails","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.1.0\r\n- Python version: 2.7.10\r\n- Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601\r\n\r\n### Details\r\n\r\nWhen calling a method with the [params](https://msdn.microsoft.com/en-us/library/w5zay9db.aspx) keyword with a single argument I get\r\n\r\n\u003e TypeError: No method matches given arguments\r\n\r\nTo reproduce:\r\n\r\nC#:\r\n```C#\r\npublic class Foo\r\n{\r\n public void Bar(params int[] values)\r\n {\r\n foreach (var value in values)\r\n {\r\n Console.WriteLine(value);\r\n }\r\n }\r\n}\r\n```\r\n\r\nPython:\r\n```python\r\nfoo = Foo()\r\n\r\nfoo.Bar([2,3,5,7]) # works\r\nfoo.Bar(2,3,5,7) # works\r\n\r\nfoo.Bar([5]) # works\r\nfoo.Bar(5) # TypeError: No method matches given arguments\r\n```\r\n\r\nThis is probably related to the meta-issue #265.","author":{"url":"https://github.com/limdaepl","@type":"Person","name":"limdaepl"},"datePublished":"2017-01-23T09:41:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/331/pythonnet/issues/331"}
| 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:884ed0fa-3c3d-b9bd-1aca-f9cf149c9159 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9246:2CF71F:957E1A:D308E6:6970B67A |
| html-safe-nonce | 5e73f47932a1eb9325cdecb8a49e78aa9e6727b6ecbf3049e6c0662800f7290f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ2OjJDRjcxRjo5NTdFMUE6RDMwOEU2OjY5NzBCNjdBIiwidmlzaXRvcl9pZCI6IjMwNzAzNzM0NDQ4MDU3Njg4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d632e666bf0784afb68b1f34e01014d6a448163d08e6e11bc4693ccdf75d6f29 |
| hovercard-subject-tag | issue:202485450 |
| 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/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b3c5b3eb11c395d360c07725233f861fa22a5db4c1901a26bd131b79433fe6b/pythonnet/pythonnet/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b3c5b3eb11c395d360c07725233f861fa22a5db4c1901a26bd131b79433fe6b/pythonnet/pythonnet/issues/331 |
| og:image:alt | Environment Pythonnet version: 2.1.0 Python version: 2.7.10 Operating System: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601 Details When calling a method with the params keywo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | limdaepl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width