René's URL Explorer Experiment


Title: Expose serialization api by BadSingleton · Pull Request #2336 · pythonnet/pythonnet · GitHub

Open Graph Title: Expose serialization api by BadSingleton · Pull Request #2336 · pythonnet/pythonnet

X Title: Expose serialization api by BadSingleton · Pull Request #2336 · pythonnet/pythonnet

Description: Adds post-serialization and pre-deserialization hooks for additional customization. What does this implement/fix? Explain your changes. This PR supersedes #1892 , offer another workaround for issues #2335 #2221 #2282 , possibly others. Does this close any currently open issues? This addresses @lostmsu 's comments of exposing an API instead of adding functionality Any other comments? According to Unity dev answers on the Unity forums, they will implement a ring-link architecture as a replacement for domain load/unload. I have added no tests yet in this PR considering that domain load/unload is deprecated from a .NEt perspective. https://forum.unity.com/threads/unity-future-net-development-status.1092205/page-34#post-8918231 This PR is made in my own name, I am no longer working at the company that signed the CLA for me. 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: Adds post-serialization and pre-deserialization hooks for additional customization. What does this implement/fix? Explain your changes. This PR supersedes #1892 , offer another workaround for issue...

X Description: Adds post-serialization and pre-deserialization hooks for additional customization. What does this implement/fix? Explain your changes. This PR supersedes #1892 , offer another workaround for issue...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b6e54a67-9b87-b820-8355-82ca7b9f46f8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC346:1085F6:1A836A9:239225D:697048A0
html-safe-noncea0bbbab5bb9c6b7db7bfa2728cfefaec582aae9b6a64ab5d7429be4b6f2bdc13
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzQ2OjEwODVGNjoxQTgzNkE5OjIzOTIyNUQ6Njk3MDQ4QTAiLCJ2aXNpdG9yX2lkIjoiOTE1MjI2MzMyMzEyMDU4NDg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3c15136dc903e0fdd745475d983e6f9943104ed859085432a90de8a8dc9abab3
hovercard-subject-tagpull_request:1761811976
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/pull/2336/files
twitter:imagehttps://avatars.githubusercontent.com/u/6788684?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6788684?s=400&v=4
og:image:altAdds post-serialization and pre-deserialization hooks for additional customization. What does this implement/fix? Explain your changes. This PR supersedes #1892 , offer another workaround for issue...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pythonnet/pythonnet/pull/2336/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fpull%2F2336%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F2336%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=pythonnet%2Fpythonnet
Reloadhttps://github.com/pythonnet/pythonnet/pull/2336/files
Reloadhttps://github.com/pythonnet/pythonnet/pull/2336/files
Reloadhttps://github.com/pythonnet/pythonnet/pull/2336/files
pythonnet https://github.com/pythonnet
pythonnethttps://github.com/pythonnet/pythonnet
Notifications https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Fork 770 https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Star 5.4k https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Code https://github.com/pythonnet/pythonnet
Issues 155 https://github.com/pythonnet/pythonnet/issues
Pull requests 18 https://github.com/pythonnet/pythonnet/pulls
Discussions https://github.com/pythonnet/pythonnet/discussions
Actions https://github.com/pythonnet/pythonnet/actions
Projects 0 https://github.com/pythonnet/pythonnet/projects
Wiki https://github.com/pythonnet/pythonnet/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/pythonnet/pythonnet/security
Please reload this pagehttps://github.com/pythonnet/pythonnet/pull/2336/files
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 https://github.com/pythonnet/pythonnet/security
Insights https://github.com/pythonnet/pythonnet/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpythonnet%2Fpythonnet%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpythonnet%2Fpythonnet%2Fissues%2Fnew%2Fchoose
lostmsuhttps://github.com/lostmsu
pythonnet:masterhttps://github.com/pythonnet/pythonnet/tree/master
BadSingleton:expose-serialization-apihttps://github.com/BadSingleton/pythonnet/tree/expose-serialization-api
Conversation 36 https://github.com/pythonnet/pythonnet/pull/2336
Commits 6 https://github.com/pythonnet/pythonnet/pull/2336/commits
Checks 0 https://github.com/pythonnet/pythonnet/pull/2336/checks
Files changed https://github.com/pythonnet/pythonnet/pull/2336/files
Please reload this pagehttps://github.com/pythonnet/pythonnet/pull/2336/files
Expose serialization api https://github.com/pythonnet/pythonnet/pull/2336/files#top
Show all changes 6 commits https://github.com/pythonnet/pythonnet/pull/2336/files
d7f31bf Expose an API for users to specify their own formatter BadSingleton Feb 6, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/d7f31bfa430ed725bca554f21d83f5594e6650a2
aa37f89 Add API for capsuling data when serializing BadSingleton Feb 21, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/aa37f89725bab6b12ba61da2ef1546930cfdc4a2
647c75c Part one of review fixes BadSingleton Mar 17, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/647c75c782be3fdd350e4b559a2536e34a204edf
02158f3 Adds tests for custom serialization BadSingleton Mar 29, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/02158f3bc5d1eed9c8951e2d795b325096b0a2b5
a058900 Add NoopFormatter and fall back to it if BinaryFormatter is not avail… filmor Apr 26, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/a05890013b13613374a979b10b985364f6e79d39
6e37568 Use TryGetBuffer instead of GetBuffer filmor May 6, 2024 https://github.com/pythonnet/pythonnet/pull/2336/commits/6e37568dd167c5d6b972dc2870bf64591bc0d8ad
Clear filters https://github.com/pythonnet/pythonnet/pull/2336/files
Please reload this pagehttps://github.com/pythonnet/pythonnet/pull/2336/files
Please reload this pagehttps://github.com/pythonnet/pythonnet/pull/2336/files
CHANGELOG.md https://github.com/pythonnet/pythonnet/pull/2336/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
NoopFormatter.cs https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5c0e9acd0bf9ff135ee5d2b40e93be6b619ee2265e1fc08133043ff0c4a86853
RuntimeData.cs https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
TestRunner.cs https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
test_domain_reload.py https://github.com/pythonnet/pythonnet/pull/2336/files#diff-44afee0743a90c2454d65f1fce72dac7324b28d1a89ad50e36e5d2510cb560ad
CHANGELOG.mdhttps://github.com/pythonnet/pythonnet/pull/2336/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/BadSingleton/pythonnet/blob/6e37568dd167c5d6b972dc2870bf64591bc0d8ad/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pythonnet/pythonnet/pull/2336/{{ revealButtonHref }}
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
src/runtime/StateSerialization/NoopFormatter.cshttps://github.com/pythonnet/pythonnet/pull/2336/files#diff-5c0e9acd0bf9ff135ee5d2b40e93be6b619ee2265e1fc08133043ff0c4a86853
View file https://github.com/BadSingleton/pythonnet/blob/6e37568dd167c5d6b972dc2870bf64591bc0d8ad/src/runtime/StateSerialization/NoopFormatter.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pythonnet/pythonnet/pull/2336/{{ revealButtonHref }}
src/runtime/StateSerialization/RuntimeData.cshttps://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
View file https://github.com/BadSingleton/pythonnet/blob/6e37568dd167c5d6b972dc2870bf64591bc0d8ad/src/runtime/StateSerialization/RuntimeData.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pythonnet/pythonnet/pull/2336/{{ revealButtonHref }}
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-b8c90b19c608503041e1525365474fea9961c8130eb938e9517e39ca62081cf3
tests/domain_tests/TestRunner.cshttps://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
View file https://github.com/BadSingleton/pythonnet/blob/6e37568dd167c5d6b972dc2870bf64591bc0d8ad/tests/domain_tests/TestRunner.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pythonnet/pythonnet/pull/2336/{{ revealButtonHref }}
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
Please reload this pagehttps://github.com/pythonnet/pythonnet/pull/2336/files
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-5066298aaeb48b813b73cbd804342b59a89595d124ada7e85893b277d0f7148e
tests/domain_tests/test_domain_reload.pyhttps://github.com/pythonnet/pythonnet/pull/2336/files#diff-44afee0743a90c2454d65f1fce72dac7324b28d1a89ad50e36e5d2510cb560ad
View file https://github.com/BadSingleton/pythonnet/blob/6e37568dd167c5d6b972dc2870bf64591bc0d8ad/tests/domain_tests/test_domain_reload.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pythonnet/pythonnet/pull/2336/{{ revealButtonHref }}
https://github.com/pythonnet/pythonnet/pull/2336/files#diff-44afee0743a90c2454d65f1fce72dac7324b28d1a89ad50e36e5d2510cb560ad
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.