Title: Constructor argument matching supports simple int to (float|double) types by sigbjorn · Pull Request #239 · pythonnet/pythonnet · GitHub
Open Graph Title: Constructor argument matching supports simple int to (float|double) types by sigbjorn · Pull Request #239 · pythonnet/pythonnet
X Title: Constructor argument matching supports simple int to (float|double) types by sigbjorn · Pull Request #239 · pythonnet/pythonnet
Description: Refer to Issue #238 This PR aim to improve constructor argument matching so that if you have a .NET constructor accepting a double, it will be selected if you pass it an int. This corresponds to solution part (a.) in the referenced issue. The PR involves tests, that with the prior version would fail, but with the fixes, works Ok. All existing tests, run on python 3.5, x64, windows platform executes Ok. I have not verified other platforms(mono, 32 bits etc), but could do that on request. The PR does currently not support raising Type exception in case a falling back to a default constructor due to arguments not matching. However, if anyone contribute with hint's how to get information about the .NET creation object context (super-class, or just plain class), - I would be happy to extend the contents and tests to cover that important aspect as well.
Open Graph Description: Refer to Issue #238 This PR aim to improve constructor argument matching so that if you have a .NET constructor accepting a double, it will be selected if you pass it an int. This corresponds to ...
X Description: Refer to Issue #238 This PR aim to improve constructor argument matching so that if you have a .NET constructor accepting a double, it will be selected if you pass it an int. This corresponds to ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/239
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:3f2781fa-2389-9e3a-cd7a-4a62960d991b |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B018:17A029:DFE158:12F1340:6971D27C |
| html-safe-nonce | 88606697a8a285ed4a3fe06a31c2c5af16850eb4a77d7a5b748db6cf6a3b0ad7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDE4OjE3QTAyOTpERkUxNTg6MTJGMTM0MDo2OTcxRDI3QyIsInZpc2l0b3JfaWQiOiI2MDU1MzE2ODI1OTcwOTgxMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 93d41ce4bf0615360e797e27bc724cab802f1b858a2f03450cd1d84a19090f57 |
| hovercard-subject-tag | pull_request:76100159 |
| 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/239/checks |
| twitter:image | https://avatars.githubusercontent.com/u/8044775?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8044775?s=400&v=4 |
| og:image:alt | Refer to Issue #238 This PR aim to improve constructor argument matching so that if you have a .NET constructor accepting a double, it will be selected if you pass it an int. This corresponds to ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7476eb4140129667a7530d10cfb7688f701883e35a4dcaa4673e3ec599af5199 |
| 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 | 2cc0827c872b538cd08371730242ae4951d2d61a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width