Title: Implicit float conversion in function calls by filmor · Pull Request #1908 · pythonnet/pythonnet · GitHub
Open Graph Title: Implicit float conversion in function calls by filmor · Pull Request #1908 · pythonnet/pythonnet
X Title: Implicit float conversion in function calls by filmor · Pull Request #1908 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. Uses __float__ when available if a Python object is passed to a function with a Double or Single parameter. Does this close any currently open issues? #1833 Any other comments? This is not yet supported for integer types, which would use __int__ or __index__ (for Python >=3.10), as the respective logic is for some reason only implemented for AsLongLong and AsLong, not for the unsigned counterparts and also not for the AsSize_t variants that we are using. 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 Ensure you have signed the .NET Foundation CLA Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. Uses __float__ when available if a Python object is passed to a function with a Double or Single parameter. Does this close any currently open is...
X Description: What does this implement/fix? Explain your changes. Uses __float__ when available if a Python object is passed to a function with a Double or Single parameter. Does this close any currently open is...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1908
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0fdf240f-fb7d-8371-7a44-db661e4f0ba3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A08C:DD6B:1FB7E80:2AE2743:69702DBB |
| html-safe-nonce | 29144ade443bcf0471e922e6ce1322dda2116b877fe5477d85292259034519bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDhDOkRENkI6MUZCN0U4MDoyQUUyNzQzOjY5NzAyREJCIiwidmlzaXRvcl9pZCI6Ijg1MjczNTg3MTk4NTc1MzY0NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 33d7865bb1af95a396427210e2187508cbed8e7df97f3da9ca93e1f6ddc8b278 |
| hovercard-subject-tag | pull_request:1024614522 |
| 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/1908/files |
| twitter:image | https://avatars.githubusercontent.com/u/30848?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/30848?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. Uses __float__ when available if a Python object is passed to a function with a Double or Single parameter. Does this close any currently open is... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width