Title: Stricter coversion of primitive Python types to `System.Object` by lostmsu · Pull Request #1958 · pythonnet/pythonnet · GitHub
Open Graph Title: Stricter coversion of primitive Python types to `System.Object` by lostmsu · Pull Request #1958 · pythonnet/pythonnet
X Title: Stricter coversion of primitive Python types to `System.Object` by lostmsu · Pull Request #1958 · pythonnet/pythonnet
Description: When trying to convert to System.Object, only convert float, bool, and str to corresponding .NET primitives types. Do NOT convert instances of types derived from them. What does this implement/fix? Explain your changes. This changes Converter to perform exact type checks when target type is System.Object Does this close any currently open issues? fixes #1957 Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change
Open Graph Description: When trying to convert to System.Object, only convert float, bool, and str to corresponding .NET primitives types. Do NOT convert instances of types derived from them. What does this implement/fix?...
X Description: When trying to convert to System.Object, only convert float, bool, and str to corresponding .NET primitives types. Do NOT convert instances of types derived from them. What does this implement/fix?...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1958
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bad2d47c-acbc-465f-f817-9d4923524149 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E324:1C0428:18CEA6B:22C9A69:6970DD97 |
| html-safe-nonce | 1c6bfcac912114e19765b03aa5aebd4c3a798c8bd08fe6f9e6c7fd5dcb7bb06e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzI0OjFDMDQyODoxOENFQTZCOjIyQzlBNjk6Njk3MEREOTciLCJ2aXNpdG9yX2lkIjoiNTg0MzI0NTU4NDI2NDI1NjkxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf56f33981d001dcd4b73bde66eb0894627f2bac35a2136888198afab9d68058 |
| hovercard-subject-tag | pull_request:1073027986 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/1958/files |
| 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 | When trying to convert to System.Object, only convert float, bool, and str to corresponding .NET primitives types. Do NOT convert instances of types derived from them. What does this implement/fix?... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width