René's URL Explorer Experiment


Title: Canonicalising pack by stephenpascoe · Pull Request #1 · msgpack/msgpack-python · GitHub

Open Graph Title: Canonicalising pack by stephenpascoe · Pull Request #1 · msgpack/msgpack-python

X Title: Canonicalising pack by stephenpascoe · Pull Request #1 · msgpack/msgpack-python

Description: I'd like to make canonicalised pack data to make suitable for hashing. I've noticed msgpack-perl already supports this. Would you consider this patch to allow sorting of dictionary keys during packing? The code preserves the original logic as much as possible at the expense of repeating a for loop. This could be made more concise. Also has a test. Although I can't get the tests running because "msgpack.packs" doesn't exist.

Open Graph Description: I'd like to make canonicalised pack data to make suitable for hashing. I've noticed msgpack-perl already supports this. Would you consider this patch to allow sorting of dictionary keys d...

X Description: I'd like to make canonicalised pack data to make suitable for hashing. I've noticed msgpack-perl already supports this. Would you consider this patch to allow sorting of dictionar...

Opengraph URL: https://github.com/msgpack/msgpack-python/pull/1

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:93119b1b-23a3-69b5-3eae-05a88a9437c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id868C:D6BAD:599036D:796D42F:697374E1
html-safe-nonce90df77cd2e8148df641ebb362e469ca013b987d76843efd7c6131226517ab9b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjhDOkQ2QkFEOjU5OTAzNkQ6Nzk2RDQyRjo2OTczNzRFMSIsInZpc2l0b3JfaWQiOiI0NzAyNTUxNjcxMTYwNjY1MzEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac512c0bca1794ea06af5d228a139282ce07bd3d5458580147ec0facf5c7e73b8b
hovercard-subject-tagpull_request:426049
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/msgpack/msgpack-python/pull/1/files
twitter:imagehttps://avatars.githubusercontent.com/u/677427?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/677427?s=400&v=4
og:image:altI'd like to make canonicalised pack data to make suitable for hashing. I've noticed msgpack-perl already supports this. Would you consider this patch to allow sorting of dictionary keys d...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id2242705
octolytics-dimension-repository_nwomsgpack/msgpack-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2242705
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-python
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
releasefe8be790582ef7a55477ce1918ac0ed16b106d31
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-python%2Fpull%2F1%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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-python%2Fpull%2F1%2Ffiles
Sign up https://patch-diff.githubusercontent.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=msgpack%2Fmsgpack-python
Reloadhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Reloadhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Reloadhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
msgpack https://patch-diff.githubusercontent.com/msgpack
msgpack-pythonhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Fork 238 https://patch-diff.githubusercontent.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Star 2.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Code https://patch-diff.githubusercontent.com/msgpack/msgpack-python
Issues 3 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/issues
Pull requests 3 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pulls
Discussions https://patch-diff.githubusercontent.com/msgpack/msgpack-python/discussions
Actions https://patch-diff.githubusercontent.com/msgpack/msgpack-python/actions
Security 0 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/security
Insights https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pulse
Code https://patch-diff.githubusercontent.com/msgpack/msgpack-python
Issues https://patch-diff.githubusercontent.com/msgpack/msgpack-python/issues
Pull requests https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pulls
Discussions https://patch-diff.githubusercontent.com/msgpack/msgpack-python/discussions
Actions https://patch-diff.githubusercontent.com/msgpack/msgpack-python/actions
Security https://patch-diff.githubusercontent.com/msgpack/msgpack-python/security
Insights https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fmsgpack%2Fmsgpack-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fmsgpack%2Fmsgpack-python%2Fissues%2Fnew%2Fchoose
stephenpascoehttps://patch-diff.githubusercontent.com/stephenpascoe
msgpack:masterhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/tree/master
stephenpascoe:canonicalhttps://patch-diff.githubusercontent.com/stephenpascoe/msgpack-python/tree/canonical
Conversation 2 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1
Commits 2 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/commits
Checks 0 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/checks
Files changed https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Canonicalising pack https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
8d32bef Option to create canonical packing by sorting dictionary keys. Oct 23, 2011 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/commits/8d32bef706153674359da84bb4d600b255976a83
ecdbd45 Test case for canonicalise option. Oct 23, 2011 https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/commits/ecdbd4573650071c224ac4696f983e24a4908372
Clear filters https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files
_msgpack.pyx https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
test_canonical.py https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-b42596c3747d43b564aa6e3460b7d6326fe005d360a38eb1bcaf2a8df511f99c
msgpack/_msgpack.pyxhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
View file https://patch-diff.githubusercontent.com/stephenpascoe/msgpack-python/blob/ecdbd4573650071c224ac4696f983e24a4908372/msgpack/_msgpack.pyx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-ce6391ba6859b0248f939a927fc3a2edf1c387810f970a5a8a02c0876925ee45
test/test_canonical.pyhttps://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/files#diff-b42596c3747d43b564aa6e3460b7d6326fe005d360a38eb1bcaf2a8df511f99c
View file https://patch-diff.githubusercontent.com/stephenpascoe/msgpack-python/blob/ecdbd4573650071c224ac4696f983e24a4908372/test/test_canonical.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/msgpack/msgpack-python/pull/1/{{ revealButtonHref }}
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.