René's URL Explorer Experiment


Title: fix: ->jvm on object-dtype numpy arrays with np-array bindings by jsavyasachi · Pull Request #288 · clj-python/libpython-clj · GitHub

Open Graph Title: fix: ->jvm on object-dtype numpy arrays with np-array bindings by jsavyasachi · Pull Request #288 · clj-python/libpython-clj

X Title: fix: ->jvm on object-dtype numpy arrays with np-array bindings by jsavyasachi · Pull Request #288 · clj-python/libpython-clj

Description: Fixes #187. With the libpython-clj2.python.np-array zero-copy bindings loaded, ->jvm on an object-dtype array threw Unable to find datatype: object: (require-python '[numpy :as np]) (require '[libpython-clj2.python.np-array]) (py/->jvm (np/array [] :dtype "object")) ;; => ExceptionInfo "Unable to find datatype: object" Without the bindings it returns [] (the default sequence conversion). Cause: the pyobject->jvm :ndarray method the bindings register always runs numpy->desc -> obj-dtype->dtype, which only maps numeric dtypes (int/uint/float). Object/str/datetime arrays hold python-object pointers, not a numeric native buffer, so they can't be zero-copied and have no mapping. Fix: only take the tensor path when the dtype is numeric; otherwise fall back to the default element-wise copy conversion (the same path used when the bindings aren't loaded). Added a regression test to numpy_test.clj (empty and mixed object arrays).

Open Graph Description: Fixes #187. With the libpython-clj2.python.np-array zero-copy bindings loaded, ->jvm on an object-dtype array threw Unable to find datatype: object: (require-python '[numpy :as np]) (require...

X Description: Fixes #187. With the libpython-clj2.python.np-array zero-copy bindings loaded, ->jvm on an object-dtype array threw Unable to find datatype: object: (require-python '[numpy :as np]) ...

Opengraph URL: https://github.com/clj-python/libpython-clj/pull/288

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:76c2259e-8868-0610-2fba-4e4ef89894d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD56C:38EA7E:5C04F:7E826:6A6156FC
html-safe-nonce2a6a890b146e75767632b6df4188f944e7d8a5c089b694b0fe47938dabb54f11
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTZDOjM4RUE3RTo1QzA0Rjo3RTgyNjo2QTYxNTZGQyIsInZpc2l0b3JfaWQiOiIzMTcwNDk3NzkxMTQ1MzY3MjkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacacda45d9caaadc8ad33c65071e9f6bb01df7a52e7b576e347fb484261c7ea6bf
hovercard-subject-tagpull_request:3917189426
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/clj-python/libpython-clj/pull/288/files
twitter:imagehttps://avatars.githubusercontent.com/u/25380661?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/25380661?s=400&v=4
og:image:altFixes #187. With the libpython-clj2.python.np-array zero-copy bindings loaded, ->jvm on an object-dtype array threw Unable to find datatype: object: (require-python '[numpy :as np]) (require...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec258d2b06b498220e3b94af28b26bbbf58f4203a6373725f779afcc867afd263
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/clj-python/libpython-clj git https://github.com/clj-python/libpython-clj.git
octolytics-dimension-user_id60827878
octolytics-dimension-user_loginclj-python
octolytics-dimension-repository_id187095617
octolytics-dimension-repository_nwoclj-python/libpython-clj
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187095617
octolytics-dimension-repository_network_root_nwoclj-python/libpython-clj
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
releasebae60047c72c7890f36d34d78461f3453c546ee2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/clj-python/libpython-clj/pull/288/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclj-python%2Flibpython-clj%2Fpull%2F288%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%2Fclj-python%2Flibpython-clj%2Fpull%2F288%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=clj-python%2Flibpython-clj
Reloadhttps://github.com/clj-python/libpython-clj/pull/288/files
Reloadhttps://github.com/clj-python/libpython-clj/pull/288/files
Reloadhttps://github.com/clj-python/libpython-clj/pull/288/files
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/files
clj-python https://github.com/clj-python
libpython-cljhttps://github.com/clj-python/libpython-clj
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/files
Notifications https://github.com/login?return_to=%2Fclj-python%2Flibpython-clj
Fork 74 https://github.com/login?return_to=%2Fclj-python%2Flibpython-clj
Star 1.2k https://github.com/login?return_to=%2Fclj-python%2Flibpython-clj
Code https://github.com/clj-python/libpython-clj
Issues 33 https://github.com/clj-python/libpython-clj/issues
Pull requests 4 https://github.com/clj-python/libpython-clj/pulls
Actions https://github.com/clj-python/libpython-clj/actions
Projects https://github.com/clj-python/libpython-clj/projects
Security and quality 0 https://github.com/clj-python/libpython-clj/security
Insights https://github.com/clj-python/libpython-clj/pulse
Code https://github.com/clj-python/libpython-clj
Issues https://github.com/clj-python/libpython-clj/issues
Pull requests https://github.com/clj-python/libpython-clj/pulls
Actions https://github.com/clj-python/libpython-clj/actions
Projects https://github.com/clj-python/libpython-clj/projects
Security and quality https://github.com/clj-python/libpython-clj/security
Insights https://github.com/clj-python/libpython-clj/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fclj-python%2Flibpython-clj%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fclj-python%2Flibpython-clj%2Fissues%2Fnew%2Fchoose
jsavyasachihttps://github.com/jsavyasachi
clj-python:masterhttps://github.com/clj-python/libpython-clj/tree/master
jsavyasachi:fix-object-ndarray-187https://github.com/jsavyasachi/libpython-clj/tree/fix-object-ndarray-187
Conversation 0 https://github.com/clj-python/libpython-clj/pull/288
Commits 1 https://github.com/clj-python/libpython-clj/pull/288/commits
Checks 45 https://github.com/clj-python/libpython-clj/pull/288/checks
Files changed https://github.com/clj-python/libpython-clj/pull/288/files
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/files
fix: ->jvm on object-dtype numpy arrays with np-array bindings https://github.com/clj-python/libpython-clj/pull/288/files#top
Show all changes 1 commit https://github.com/clj-python/libpython-clj/pull/288/files
f68dc36 fix: ->jvm on object-dtype numpy arrays with np-array bindings jsavyasachi Jun 23, 2026 https://github.com/clj-python/libpython-clj/pull/288/commits/f68dc36f20c7b8a647358340c00eaa7d522e399c
Clear filters https://github.com/clj-python/libpython-clj/pull/288/files
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/files
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/files
np_array.clj https://github.com/clj-python/libpython-clj/pull/288/files#diff-3eed9ede8cebec6126f9eb5489a010437f99b6cdd73e3d227c4a856f6db48f6b
numpy_test.clj https://github.com/clj-python/libpython-clj/pull/288/files#diff-f01cd087836254db29817ac4d81b0535c2caed183f8e7fb217f4ab99ea658f32
src/libpython_clj2/python/np_array.cljhttps://github.com/clj-python/libpython-clj/pull/288/files#diff-3eed9ede8cebec6126f9eb5489a010437f99b6cdd73e3d227c4a856f6db48f6b
View file https://github.com/clj-python/libpython-clj/blob/f68dc36f20c7b8a647358340c00eaa7d522e399c/src/libpython_clj2/python/np_array.clj
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/clj-python/libpython-clj/pull/288/{{ revealButtonHref }}
https://github.com/clj-python/libpython-clj/pull/288/files#diff-3eed9ede8cebec6126f9eb5489a010437f99b6cdd73e3d227c4a856f6db48f6b
https://github.com/clj-python/libpython-clj/pull/288/files#diff-3eed9ede8cebec6126f9eb5489a010437f99b6cdd73e3d227c4a856f6db48f6b
test/libpython_clj2/numpy_test.cljhttps://github.com/clj-python/libpython-clj/pull/288/files#diff-f01cd087836254db29817ac4d81b0535c2caed183f8e7fb217f4ab99ea658f32
View file https://github.com/clj-python/libpython-clj/blob/f68dc36f20c7b8a647358340c00eaa7d522e399c/test/libpython_clj2/numpy_test.clj
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/clj-python/libpython-clj/pull/288/{{ revealButtonHref }}
https://github.com/clj-python/libpython-clj/pull/288/files#diff-f01cd087836254db29817ac4d81b0535c2caed183f8e7fb217f4ab99ea658f32
Please reload this pagehttps://github.com/clj-python/libpython-clj/pull/288/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.