René's URL Explorer Experiment


Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python · GitHub

Open Graph Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python

X Title: Allow default handler to take a position parameter by PeterC-DLS · Pull Request #718 · msgpack/msgpack-python

Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. This is motivated by passing NumPy's ndarrays with their raw data in bin format to a web frontend where TypedArrays must be correctly aligned otherwise a copy must be taken by slicing the underlying ArrayBuffer (in the @msgpack/msgpack package). Note, the Javascript library gives access to the encoder context for extension types but this is not available for this Python library.

Open Graph Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th...

X Description: This enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th...

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

X: @github

direct link

Domain: Github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:feecee1a-cb5d-9154-86fd-4cfde97f8afe
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7A6:10D8F2:1158E86:1939F48:6A633C62
html-safe-nonce9a0674b516616734bd3a740e6e5dcb2721ecae94560bb550dabe37f710929531
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0E2OjEwRDhGMjoxMTU4RTg2OjE5MzlGNDg6NkE2MzNDNjIiLCJ2aXNpdG9yX2lkIjoiODQ0NDUyOTU2NTc4NDYyODE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0233bdb3f05c3ad25a614138b9c4fccf5eeb2f7d57921c95aa2335eac41353d3
hovercard-subject-tagpull_request:4098277360
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/718/files
twitter:imagehttps://avatars.githubusercontent.com/u/1381719?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1381719?s=400&v=4
og:image:altThis enables padding to be computed when packing a custom type and enables zero-copy unpacking by aligning primitives correctly. The code in test_default demonstrates correct padding for arrays. Th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
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
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/msgpack/msgpack-python/pull/718/files#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-python%2Fpull%2F718%2Ffiles
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%2Fmsgpack%2Fmsgpack-python%2Fpull%2F718%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=msgpack%2Fmsgpack-python
Reloadhttps://Github.com/msgpack/msgpack-python/pull/718/files
Reloadhttps://Github.com/msgpack/msgpack-python/pull/718/files
Reloadhttps://Github.com/msgpack/msgpack-python/pull/718/files
Please reload this pagehttps://Github.com/msgpack/msgpack-python/pull/718/files
msgpack https://Github.com/msgpack
msgpack-pythonhttps://Github.com/msgpack/msgpack-python
Notifications https://Github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Fork 253 https://Github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Star 2.1k https://Github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Code https://Github.com/msgpack/msgpack-python
Issues 4 https://Github.com/msgpack/msgpack-python/issues
Pull requests 7 https://Github.com/msgpack/msgpack-python/pulls
Discussions https://Github.com/msgpack/msgpack-python/discussions
Actions https://Github.com/msgpack/msgpack-python/actions
Security and quality 1 https://Github.com/msgpack/msgpack-python/security
Insights https://Github.com/msgpack/msgpack-python/pulse
Code https://Github.com/msgpack/msgpack-python
Issues https://Github.com/msgpack/msgpack-python/issues
Pull requests https://Github.com/msgpack/msgpack-python/pulls
Discussions https://Github.com/msgpack/msgpack-python/discussions
Actions https://Github.com/msgpack/msgpack-python/actions
Security and quality https://Github.com/msgpack/msgpack-python/security
Insights https://Github.com/msgpack/msgpack-python/pulse
Sign up for GitHub https://Github.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://Github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python%2Fissues%2Fnew%2Fchoose
PeterC-DLShttps://Github.com/PeterC-DLS
msgpack:mainhttps://Github.com/msgpack/msgpack-python/tree/main
DiamondLightSource:add-default-handler-posnhttps://Github.com/DiamondLightSource/msgpack-python/tree/add-default-handler-posn
Conversation 1 https://Github.com/msgpack/msgpack-python/pull/718
Commits 2 https://Github.com/msgpack/msgpack-python/pull/718/commits
Checks 50 https://Github.com/msgpack/msgpack-python/pull/718/checks
Files changed 3 https://Github.com/msgpack/msgpack-python/pull/718/files
Allow default handler to take a position parameter https://Github.com/msgpack/msgpack-python/pull/718/files#top
Show all changes 2 commits https://Github.com/msgpack/msgpack-python/pull/718/files
e374362 Allow default handler to take a position parameter PeterC-DLS Jul 20, 2026 https://Github.com/msgpack/msgpack-python/pull/718/commits/e37436287dd29b826a5077042fb2eec7a24d2be3
1fd4ac4 Fix pad wrapping in test PeterC-DLS Jul 22, 2026 https://Github.com/msgpack/msgpack-python/pull/718/commits/1fd4ac4ce4ce1c7dbb83dcd363b32381f309e220
Clear filters https://Github.com/msgpack/msgpack-python/pull/718/files
Please reload this pagehttps://Github.com/msgpack/msgpack-python/pull/718/files
Please reload this pagehttps://Github.com/msgpack/msgpack-python/pull/718/files
_packer.pyx https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
fallback.py https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
test_default.py https://Github.com/msgpack/msgpack-python/pull/718/files#diff-8d75edb38c0b5c747d631dd473cc60a7c1f68b3e405dd707804b9ed2c26f65bf
msgpack/_packer.pyxhttps://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
View file https://Github.com/msgpack/msgpack-python/blob/1fd4ac4ce4ce1c7dbb83dcd363b32381f309e220/msgpack/_packer.pyx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/msgpack/msgpack-python/pull/718/{{ revealButtonHref }}
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
msgpack/fallback.pyhttps://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
View file https://Github.com/msgpack/msgpack-python/blob/1fd4ac4ce4ce1c7dbb83dcd363b32381f309e220/msgpack/fallback.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/msgpack/msgpack-python/pull/718/{{ revealButtonHref }}
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
https://Github.com/msgpack/msgpack-python/pull/718/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
test/test_default.pyhttps://Github.com/msgpack/msgpack-python/pull/718/files#diff-8d75edb38c0b5c747d631dd473cc60a7c1f68b3e405dd707804b9ed2c26f65bf
View file https://Github.com/msgpack/msgpack-python/blob/1fd4ac4ce4ce1c7dbb83dcd363b32381f309e220/test/test_default.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/msgpack/msgpack-python/pull/718/{{ revealButtonHref }}
Please reload this pagehttps://Github.com/msgpack/msgpack-python/pull/718/files
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.