Title: [Out] parameters no longer added to return tuple by lostmsu · Pull Request #1308 · pythonnet/pythonnet · GitHub
Open Graph Title: [Out] parameters no longer added to return tuple by lostmsu · Pull Request #1308 · pythonnet/pythonnet
X Title: [Out] parameters no longer added to return tuple by lostmsu · Pull Request #1308 · pythonnet/pythonnet
Description: Parameters marked with ParameterAttributes.Out (aka [Out]) are no longer returned in addition to the regular method return value (unless they are passed with ref or out keyword). What does this implement/fix? Explain your changes. As it is now possible to pass raw .NET objects to .NET methods, there's no need to marshal [Out] parameters back to Python manually. Python users can simply access modified object's data directly. Any other comments? It was confusing to see read, _ = stream.Read(buff, 0, buff.Length) in the test code, as Read method does not really have any out or ref parameters. It also failed on some .NET implementations, as the corresponding parameter does not always have an [Out] attribute. Related issues This should unblock #1307 (tests there are failing because of this difference). Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change If an enhancement PR, please create docs and at best an example Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: Parameters marked with ParameterAttributes.Out (aka [Out]) are no longer returned in addition to the regular method return value (unless they are passed with ref or out keyword). What does this imp...
X Description: Parameters marked with ParameterAttributes.Out (aka [Out]) are no longer returned in addition to the regular method return value (unless they are passed with ref or out keyword). What does this imp...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1308
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6a5fab39-88f2-2517-825b-09bd1b80dc90 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8258:340FCB:217AFE1:2D6FEAB:6970861A |
| html-safe-nonce | 91acd0b828a67b70548005e871a94a51f14641d2988d4efcf8a5e1b3f19826f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjU4OjM0MEZDQjoyMTdBRkUxOjJENkZFQUI6Njk3MDg2MUEiLCJ2aXNpdG9yX2lkIjoiNDIwNjM5Njc0ODQ3ODg0MjM5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b13188c7a83fe5334823ab7d2b0b2d8ad56068ec49d51b7cbdc81eb9b0bf92c |
| hovercard-subject-tag | pull_request:534636416 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/1308/checks |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | Parameters marked with ParameterAttributes.Out (aka [Out]) are no longer returned in addition to the regular method return value (unless they are passed with ref or out keyword). What does this imp... |
| og:site_name | GitHub |
| og:type | object |
| 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 full-width full-width-p-0 |
| 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