René's URL Explorer Experiment


Title: Bug: fetch in DJ2.0 behaves differently compared to DJ. 0.14 · Issue #1381 · datajoint/datajoint-python · GitHub

Open Graph Title: Bug: fetch in DJ2.0 behaves differently compared to DJ. 0.14 · Issue #1381 · datajoint/datajoint-python

X Title: Bug: fetch in DJ2.0 behaves differently compared to DJ. 0.14 · Issue #1381 · datajoint/datajoint-python

Description: Bug Report Description Now that fetch has returned for backwards compatibility. I see 3 differences which might still lead to issues: fetch seems not to be classmethod anymore fetch defaults to as_dict=True in dj.2.0 but was as_dict=Fals...

Open Graph Description: Bug Report Description Now that fetch has returned for backwards compatibility. I see 3 differences which might still lead to issues: fetch seems not to be classmethod anymore fetch defaults to as_...

X Description: Bug Report Description Now that fetch has returned for backwards compatibility. I see 3 differences which might still lead to issues: fetch seems not to be classmethod anymore fetch defaults to as_...

Opengraph URL: https://github.com/datajoint/datajoint-python/issues/1381

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: fetch in DJ2.0 behaves differently compared to DJ. 0.14","articleBody":"## Bug Report\n\n### Description\nNow that fetch has returned for backwards compatibility. I see 3 differences which might still lead to issues:\n\n1. fetch seems not to be classmethod anymore\n2. fetch defaults to as_dict=True in dj.2.0 but was as_dict=False in dj.0.14\n3. fetch('KEY') doesnt work  \n\n### Reproducibility\n\n```\nimport numpy as np\nimport datajoint as dj\n\ndj.conn()  # using datajoint.json\nschema = dj.Schema(\"TEST\")\n\n@schema\nclass RandomLookup(dj.Lookup):\n    definition = \"\"\"\n    idx: int32\n    ---\n    values1: float32\n    \"\"\"\n    contents = [(0, 0.0), (1, 1.0), (2, 2.0), (3, 3.0), (4, 4.0)]\n```\n\n1. \n`\nRandomLookup.fetch('values1')  # works in dj.014\n `\n```\n---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\nCell In[38], line 1\n----\u003e 1 RandomLookup.fetch('values1')\n\nFile ~/datajoint-python/src/datajoint/expression.py:654, in QueryExpression.fetch(self, offset, limit, order_by, format, as_dict, squeeze, *attrs)\n    651     return self.to_dicts(order_by=order_by, limit=limit, offset=offset, squeeze=squeeze)\n    653 # Default: return structured array (legacy behavior)\n--\u003e 654 return self.to_arrays(order_by=order_by, limit=limit, offset=offset, squeeze=squeeze)\n\nAttributeError: 'str' object has no attribute 'to_arrays'\n```\n2.\n`\nprint(isinstance(RandomLookup().fetch('values1')[0],dict)) # True  \n`\n\n`\nprint(isinstance(RandomLookup().fetch('values1',as_dict=False)[0],dict)) # False \n`\n\n3.\n\n`RandomNumbers().fetch('KEY')`\n\n```\n---------------------------------------------------------------------------\nDataJointError                            Traceback (most recent call last)\nCell In[41], line 1\n----\u003e 1 RandomNumbers().fetch('KEY')\n\nFile ~/datajoint-python/src/datajoint/expression.py:644, in QueryExpression.fetch(self, offset, limit, order_by, format, as_dict, squeeze, *attrs)\n    641 if attrs:\n    642     if as_dict or as_dict is None:\n    643         # fetch('col1', 'col2', as_dict=True) or fetch('col1', 'col2')\n--\u003e 644         return self.proj(*attrs).to_dicts(order_by=order_by, limit=limit, offset=offset, squeeze=squeeze)\n    645     else:\n    646         # fetch('col1', 'col2', as_dict=False) -\u003e tuple of arrays\n    647         return self.to_arrays(*attrs, order_by=order_by, limit=limit, offset=offset, squeeze=squeeze)\n\nFile ~/datajoint-python/src/datajoint/expression.py:498, in QueryExpression.proj(self, *attributes, **named_attributes)\n    496 # check that all attributes exist in heading\n    497 try:\n--\u003e 498     raise DataJointError(\"Attribute `%s` not found.\" % next(a for a in attributes if a not in self.heading.names))\n    499 except StopIteration:\n    500     pass  # all ok\n\nDataJointError: Attribute `KEY` not found.\n```","author":{"url":"https://github.com/arturoptophys","@type":"Person","name":"arturoptophys"},"datePublished":"2026-02-05T14:07:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1381/datajoint-python/issues/1381"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2cd81ac7-087f-6572-43b1-95333da191ce
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA57A:34CFAA:119FB14:17E7C65:6A4D671E
html-safe-nonce562a238fa8a4de7cda58d8f08caec5c2bf7cfe4499d97877d86ef4d26bc240f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTdBOjM0Q0ZBQToxMTlGQjE0OjE3RTdDNjU6NkE0RDY3MUUiLCJ2aXNpdG9yX2lkIjoiOTMyNTc4Mjc2NjcyMzY2MzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac747fa5ea6bf360b1204b0e2dd40f22464a306ba816e32fec73873dc5b561abc3
hovercard-subject-tagissue:3901772884
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/1381/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5c26371c1e6fb75bb3ab35a5a3195cf0c3661daf9e67ea77470df464f53fe311/datajoint/datajoint-python/issues/1381
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c26371c1e6fb75bb3ab35a5a3195cf0c3661daf9e67ea77470df464f53fe311/datajoint/datajoint-python/issues/1381
og:image:altBug Report Description Now that fetch has returned for backwards compatibility. I see 3 differences which might still lead to issues: fetch seems not to be classmethod anymore fetch defaults to as_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearturoptophys
hostnamegithub.com
expected-hostnamegithub.com
None7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9
turbo-cache-controlno-preview
go-importgithub.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git
octolytics-dimension-user_id2375501
octolytics-dimension-user_logindatajoint
octolytics-dimension-repository_id5866704
octolytics-dimension-repository_nwodatajoint/datajoint-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5866704
octolytics-dimension-repository_network_root_nwodatajoint/datajoint-python
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
releasecd8f6a71db61d6012a0cbb134be844fdbe9b8a45
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/datajoint/datajoint-python/issues/1381#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F1381
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
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fdatajoint%2Fdatajoint-python%2Fissues%2F1381
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=datajoint%2Fdatajoint-python
Reloadhttps://github.com/datajoint/datajoint-python/issues/1381
Reloadhttps://github.com/datajoint/datajoint-python/issues/1381
Reloadhttps://github.com/datajoint/datajoint-python/issues/1381
Please reload this pagehttps://github.com/datajoint/datajoint-python/issues/1381
datajoint https://github.com/datajoint
datajoint-pythonhttps://github.com/datajoint/datajoint-python
Notifications https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Fork 96 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Star 194 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Code https://github.com/datajoint/datajoint-python
Issues 7 https://github.com/datajoint/datajoint-python/issues
Pull requests 4 https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality 0 https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
Code https://github.com/datajoint/datajoint-python
Issues https://github.com/datajoint/datajoint-python/issues
Pull requests https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
Bug: fetch in DJ2.0 behaves differently compared to DJ. 0.14https://github.com/datajoint/datajoint-python/issues/1381#top
bugIndicates an unexpected problem or unintended behaviorhttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22bug%22
triageIndicates issues, pull requests, or discussions need to be reviewed for the first timehttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/arturoptophys
arturoptophyshttps://github.com/arturoptophys
on Feb 5, 2026https://github.com/datajoint/datajoint-python/issues/1381#issue-3901772884
bugIndicates an unexpected problem or unintended behaviorhttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22bug%22
triageIndicates issues, pull requests, or discussions need to be reviewed for the first timehttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22triage%22
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.