René's URL Explorer Experiment


Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet · GitHub

Open Graph Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet

X Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet

Description: Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers. - Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet

Open Graph Description: What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we want...

X Description: What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we ...

Opengraph URL: https://github.com/pythonnet/pythonnet/pull/2419

X: @github

direct link

Domain: Github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:2218dfb9-d28b-75b0-f4ff-6c6c3d8f668c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7AE:267647:6A3A4E:91E1B8:6A63A6CD
html-safe-nonce015214f96f392e2303d7966b25a52d47c0cc83bf92c8fc12739a8281db61dc0b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0FFOjI2NzY0Nzo2QTNBNEU6OTFFMUI4OjZBNjNBNkNEIiwidmlzaXRvcl9pZCI6IjU5NDU2MzEzMDM4OTk3ODQ5MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf188dd45ef01544bc14fda01edb3fd9d9a3b2f33a514cc6af5bfa3a82289f9f3
hovercard-subject-tagpull_request:1974289259
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/pythonnet/pythonnet/2419/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8b9ca695e60b9cf80ce2579d9c27075e64d71b39d0d83619ddd39755f2cefff8/pythonnet/pythonnet/pull/2419
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b9ca695e60b9cf80ce2579d9c27075e64d71b39d0d83619ddd39755f2cefff8/pythonnet/pythonnet/pull/2419
og:image:altWhat does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we want...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoaompneves
hostnamegithub.com
expected-hostnamegithub.com
None4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659
turbo-cache-controlno-cache
go-importgithub.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git
octolytics-dimension-user_id6050430
octolytics-dimension-user_loginpythonnet
octolytics-dimension-repository_id14748123
octolytics-dimension-repository_nwopythonnet/pythonnet
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14748123
octolytics-dimension-repository_network_root_nwopythonnet/pythonnet
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3a0a9f049e072eb8e5795dfddcefdba9e277501d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/pythonnet/pythonnet/pull/2419#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fpull%2F2419
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fpull%2F2419
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=pythonnet%2Fpythonnet
Reloadhttps://Github.com/pythonnet/pythonnet/pull/2419
Reloadhttps://Github.com/pythonnet/pythonnet/pull/2419
Reloadhttps://Github.com/pythonnet/pythonnet/pull/2419
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
pythonnet https://Github.com/pythonnet
pythonnethttps://Github.com/pythonnet/pythonnet
Notifications https://Github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Fork 777 https://Github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Star 5.5k https://Github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Code https://Github.com/pythonnet/pythonnet
Issues 151 https://Github.com/pythonnet/pythonnet/issues
Pull requests 17 https://Github.com/pythonnet/pythonnet/pulls
Discussions https://Github.com/pythonnet/pythonnet/discussions
Actions https://Github.com/pythonnet/pythonnet/actions
Projects https://Github.com/pythonnet/pythonnet/projects
Wiki https://Github.com/pythonnet/pythonnet/wiki
Security and quality 0 https://Github.com/pythonnet/pythonnet/security
Insights https://Github.com/pythonnet/pythonnet/pulse
Code https://Github.com/pythonnet/pythonnet
Issues https://Github.com/pythonnet/pythonnet/issues
Pull requests https://Github.com/pythonnet/pythonnet/pulls
Discussions https://Github.com/pythonnet/pythonnet/discussions
Actions https://Github.com/pythonnet/pythonnet/actions
Projects https://Github.com/pythonnet/pythonnet/projects
Wiki https://Github.com/pythonnet/pythonnet/wiki
Security and quality https://Github.com/pythonnet/pythonnet/security
Insights https://Github.com/pythonnet/pythonnet/pulse
joaompneveshttps://Github.com/joaompneves
pythonnet:masterhttps://Github.com/pythonnet/pythonnet/tree/master
joaompneves:support-specific-type-encodinghttps://Github.com/joaompneves/pythonnet/tree/support-specific-type-encoding
Conversationhttps://Github.com/pythonnet/pythonnet/pull/2419
Commits13 (13)https://Github.com/pythonnet/pythonnet/pull/2419/commits
Checkshttps://Github.com/pythonnet/pythonnet/pull/2419/checks
Files changedhttps://Github.com/pythonnet/pythonnet/pull/2419/files
Added ToPythonAs() extension method for explicit conversion using an arbitrary typehttps://Github.com/pythonnet/pythonnet/pull/2419#top
joaompneveshttps://Github.com/joaompneves
pythonnet:masterhttps://Github.com/pythonnet/pythonnet/tree/master
joaompneves:support-specific-type-encodinghttps://Github.com/joaompneves/pythonnet/tree/support-specific-type-encoding
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
Jul 17, 2024https://Github.com/pythonnet/pythonnet/pull/2419#issue-2414253761
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
.NET Foundation CLAhttps://cla.dotnetfoundation.org/pythonnet/pythonnet
AUTHORShttps://Github.com/pythonnet/pythonnet/blob/master/AUTHORS.md
CHANGELOGhttps://Github.com/pythonnet/pythonnet/blob/master/CHANGELOG.md
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
https://Github.com/joaompneves
Encoders no support specifying the target encoding typehttps://Github.com/pythonnet/pythonnet/pull/2419/commits/1ef1e7ba5be974c4cc500c5d134641ceb96f6b9d
1ef1e7bhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/1ef1e7ba5be974c4cc500c5d134641ceb96f6b9d
https://Github.com/lostmsu
lostmsuhttps://Github.com/lostmsu
Jul 17, 2024https://Github.com/pythonnet/pythonnet/pull/2419#issuecomment-2233944939
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
joaompneveshttps://Github.com/joaompneves
July 18, 2024 10:03https://Github.com/pythonnet/pythonnet/pull/2419#commits-pushed-255201a
https://Github.com/joaompneves
Fix buildhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/255201afbc81f382b74ebcb74ec9506ee67a83ba
255201ahttps://Github.com/pythonnet/pythonnet/pull/2419/commits/255201afbc81f382b74ebcb74ec9506ee67a83ba
https://Github.com/joaompneves
Add unit testhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/37c4d049a3cf81cfa5c14a0bcf19b363a14e3519
37c4d04https://Github.com/pythonnet/pythonnet/pull/2419/commits/37c4d049a3cf81cfa5c14a0bcf19b363a14e3519
https://Github.com/joaompneves
Revert unnecessary changeshttps://Github.com/pythonnet/pythonnet/pull/2419/commits/4fbf04c34783e717ef096ffb7fe7268611ee324f
4fbf04chttps://Github.com/pythonnet/pythonnet/pull/2419/commits/4fbf04c34783e717ef096ffb7fe7268611ee324f
https://Github.com/joaompneves
Add test descriptionhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/cf8ff1f1d9e8514660b3bcc8ca79543fa49ee971
cf8ff1fhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/cf8ff1f1d9e8514660b3bcc8ca79543fa49ee971
https://Github.com/joaompneves
Remove warninghttps://Github.com/pythonnet/pythonnet/pull/2419/commits/bc111365482557e85f7474e68d2d76dc5ff8fff3
bc11136https://Github.com/pythonnet/pythonnet/pull/2419/commits/bc111365482557e85f7474e68d2d76dc5ff8fff3
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
Jul 18, 2024https://Github.com/pythonnet/pythonnet/pull/2419#event-13559949874
joaompneveshttps://Github.com/joaompneves
July 18, 2024 18:10https://Github.com/pythonnet/pythonnet/pull/2419#commits-pushed-1073b03
https://Github.com/joaompneves
Update authors and changeloghttps://Github.com/pythonnet/pythonnet/pull/2419/commits/1073b03ef600925040721ea5bca0160eff6ecdb5
1073b03https://Github.com/pythonnet/pythonnet/pull/2419/commits/1073b03ef600925040721ea5bca0160eff6ecdb5
https://Github.com/joaompneves
Update CHANGELOG.mdhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/b5a18d1b125ec838cd215090aabd7ca83932cf94
b5a18d1https://Github.com/pythonnet/pythonnet/pull/2419/commits/b5a18d1b125ec838cd215090aabd7ca83932cf94
https://Github.com/joaompneves
Update CHANGELOG.mdhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/37ec583443f740fcbd73e2bc52d5e06c8a693b3d
37ec583https://Github.com/pythonnet/pythonnet/pull/2419/commits/37ec583443f740fcbd73e2bc52d5e06c8a693b3d
https://Github.com/joaompneves
Update CHANGELOG.mdhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/ad7f9857f6389d5445c0283b2e7c24606d744159
ad7f985https://Github.com/pythonnet/pythonnet/pull/2419/commits/ad7f9857f6389d5445c0283b2e7c24606d744159
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
Jul 18, 2024 https://Github.com/pythonnet/pythonnet/pull/2419#pullrequestreview-2186451469
View reviewed changes https://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159
src/embed_tests/Python.EmbeddingTest.csprojhttps://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159#diff-6bfe85b2afa32799eb0008c63c2ab5372012dba8bf12ffb8c3441fafc57d5ac7
joaompneveshttps://Github.com/joaompneves
Jul 18, 2024https://Github.com/pythonnet/pythonnet/pull/2419#discussion_r1683223545
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
lostmsuhttps://Github.com/lostmsu
Jul 22, 2024https://Github.com/pythonnet/pythonnet/pull/2419#discussion_r1687090311
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
joaompneveshttps://Github.com/joaompneves
Jul 23, 2024https://Github.com/pythonnet/pythonnet/pull/2419#discussion_r1687748062
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
July 18, 2024 17:17https://Github.com/pythonnet/pythonnet/pull/2419#event-13560025434
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
Jul 18, 2024https://Github.com/pythonnet/pythonnet/pull/2419#issuecomment-2237115748
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
https://Github.com/lostmsu
lostmsuhttps://Github.com/lostmsu
Jul 22, 2024 https://Github.com/pythonnet/pythonnet/pull/2419#pullrequestreview-2192471529
View reviewed changes https://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159
src/embed_tests/Python.EmbeddingTest.csprojhttps://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159#diff-6bfe85b2afa32799eb0008c63c2ab5372012dba8bf12ffb8c3441fafc57d5ac7
lostmsuhttps://Github.com/lostmsu
Jul 22, 2024https://Github.com/pythonnet/pythonnet/pull/2419#discussion_r1687090311
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
src/runtime/Converter.cshttps://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159#diff-bdceb1e563cf51408cc2ea4897544abd8214c83d13458b084b4db10aa0578d67
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
src/runtime/PythonTypes/PyObject.cshttps://Github.com/pythonnet/pythonnet/pull/2419/files/ad7f9857f6389d5445c0283b2e7c24606d744159#diff-0e47fd064cada6ce984f46f074f9f23c9b2d9dbef5a7abf1129b75f753bf2152
lostmsuhttps://Github.com/lostmsu
Jul 22, 2024https://Github.com/pythonnet/pythonnet/pull/2419#discussion_r1687094556
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
joaompneveshttps://Github.com/joaompneves
July 23, 2024 10:45https://Github.com/pythonnet/pythonnet/pull/2419#commits-pushed-bac598f
https://Github.com/joaompneves
CRhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/bac598fa1d64d4b9d44514689b62e7d5d5b321e4
bac598fhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/bac598fa1d64d4b9d44514689b62e7d5d5b321e4
https://Github.com/joaompneves
Merge branch 'support-specific-type-encoding' ofhttps://Github.com/pythonnet/pythonnet/pull/2419/commits/e04b6c4947d06cd35d2c228de3b78f8787060dcf
https://github.com/j…https://github.com/joaompneves/pythonnet
e04b6c4https://Github.com/pythonnet/pythonnet/pull/2419/commits/e04b6c4947d06cd35d2c228de3b78f8787060dcf
…oaompneves/pythonnethttps://github.com/joaompneves/pythonnet
https://github.com/joaompneves/pythonnethttps://github.com/joaompneves/pythonnet
https://Github.com/joaompneves
Revert filehttps://Github.com/pythonnet/pythonnet/pull/2419/commits/8bb75194671cb9e9a90eb4b4de00576da1a75131
8bb7519https://Github.com/pythonnet/pythonnet/pull/2419/commits/8bb75194671cb9e9a90eb4b4de00576da1a75131
https://Github.com/joaompneves
joaompneveshttps://Github.com/joaompneves
lostmsuhttps://Github.com/lostmsu
July 29, 2024 14:25https://Github.com/pythonnet/pythonnet/pull/2419#event-13681545699
https://github.co/hiddenchars
https://Github.com/pythonnet/pythonnet/pull/{{ revealButtonHref }}
Sign up for freehttps://Github.com/join?source=comment-repo
Sign in to commenthttps://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fpull%2F2419
https://Github.com/lostmsu
lostmsu https://Github.com/lostmsu
Please reload this pagehttps://Github.com/pythonnet/pythonnet/pull/2419
https://Github.com/joaompneves
https://Github.com/lostmsu
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.