René's URL Explorer Experiment


Title: Pickling deque subclasses ignores their `__dict__`. · Issue #4769 · RustPython/RustPython · GitHub

Open Graph Title: Pickling deque subclasses ignores their `__dict__`. · Issue #4769 · RustPython/RustPython

X Title: Pickling deque subclasses ignores their `__dict__`. · Issue #4769 · RustPython/RustPython

Description: Caught after updating test_deque.py. In RustPython, pickling a deque subclass ignores its __dict__: >>>>> import pickle >>>>> from collections import deque >>>>> class Deque(deque): pass >>>>> d = Deque() >>>>> d.x = "value" >>>>> e = pi...

Open Graph Description: Caught after updating test_deque.py. In RustPython, pickling a deque subclass ignores its __dict__: >>>>> import pickle >>>>> from collections import deque >>>>> class Deque(deque): pass >>>>> d = ...

X Description: Caught after updating test_deque.py. In RustPython, pickling a deque subclass ignores its __dict__: >>>>> import pickle >>>>> from collections import deque >>>...

Opengraph URL: https://github.com/RustPython/RustPython/issues/4769

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pickling deque subclasses ignores their `__dict__`.","articleBody":"Caught after updating `test_deque.py`. In RustPython, pickling a deque subclass ignores its `__dict__`:\r\n\r\n```python\r\n>>>>> import pickle\r\n>>>>> from collections import deque\r\n>>>>> class Deque(deque): pass\r\n>>>>> d = Deque()\r\n>>>>> d.x = \"value\"\r\n>>>>> e = pickle.loads(pickle.dumps(pickle.HIGHEST_PROTOCOL))\r\n>>>>> e.__dict__\r\n{}\r\n```\r\n\r\nWhile in Python, `__dict__` is correctly returned as `{'x': 'value'}`.\r\n\r\nThis doesn't appear to be the case with some other collections like `list` and `dict` so those could probably serve as an inspiration for what might be missing in `deque`.\r\n\r\nFor testing purposes, see [`test_copy_pickle`](https://github.com/RustPython/RustPython/blob/25ca331dc81e617498465ecdb2f848ec81025f71/Lib/test/test_deque.py#L818) in `Lib/test/test_deque.py`.","author":{"url":"https://github.com/DimitrisJim","@type":"Person","name":"DimitrisJim"},"datePublished":"2023-03-25T13:37:33Z","url":"https://github.com/RustPython/RustPython/issues/4769"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:892c3c5a-abec-8837-09b4-31329a5bdce9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBDD0:2714DE:23C919A:3076AD5:6B00271B
html-safe-nonce4620b7178974051f718ebecba0063144ddd59e91b2863c7bcee2824b4b2c0ab8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREQwOjI3MTRERToyM0M5MTlBOjMwNzZBRDU6NkIwMDI3MUIiLCJ2aXNpdG9yX2lkIjoiNDkzMDI2OTgwMjEzMzQ2NDg1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9a9c5574840a28e82f3b4c1be8b960d0b337da63feaf354ef7005b973e53d79d
hovercard-subject-tagissue:1640521755
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/RustPython/RustPython/4769/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0664a521b6fd27c3157ab0ace2406cc228ae2f5dfd504d76d0157db2c2bc2048/RustPython/RustPython/issues/4769
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0664a521b6fd27c3157ab0ace2406cc228ae2f5dfd504d76d0157db2c2bc2048/RustPython/RustPython/issues/4769
og:image:altCaught after updating test_deque.py. In RustPython, pickling a deque subclass ignores its __dict__: >>>>> import pickle >>>>> from collections import deque >>>>> class Deque(deque): pass >>>>> d = ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDimitrisJim
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/RustPython/RustPython/issues/4769#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fissues%2F4769
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fissues%2F4769
Sign uphttps://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/issues/4769
Reloadhttps://github.com/RustPython/RustPython/issues/4769
Reloadhttps://github.com/RustPython/RustPython/issues/4769
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests144 (144)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
https://github.com/RustPython/RustPython
New issuehttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/4769
New issuehttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/4769
Pickling deque subclasses ignores their __dict__.https://github.com/RustPython/RustPython/issues/4769#top
C-bugSomething isn't workinghttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-bug%22
C-compatA discrepancy between RustPython and CPythonhttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-compat%22
https://github.com/DimitrisJim
DimitrisJimhttps://github.com/DimitrisJim
on Mar 25, 2023https://github.com/RustPython/RustPython/issues/4769#issue-1640521755
test_copy_picklehttps://github.com/RustPython/RustPython/blob/25ca331dc81e617498465ecdb2f848ec81025f71/Lib/test/test_deque.py#L818
DimitrisJimhttps://github.com/DimitrisJim
C-bugSomething isn't workinghttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-bug%22
C-compatA discrepancy between RustPython and CPythonhttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-compat%22
on Mar 25, 2023https://github.com/RustPython/RustPython/issues/4769#event-8845382223
https://github.com/youknowone
youknowonehttps://github.com/youknowone
on Mar 25, 2023https://github.com/RustPython/RustPython/issues/4769#issuecomment-1483860696
https://github.com/DimitrisJim
DimitrisJimhttps://github.com/DimitrisJim
on Mar 25, 2023https://github.com/RustPython/RustPython/issues/4769#issuecomment-1483884179
https://github.com/youknowone
youknowonehttps://github.com/youknowone
on Oct 6, 2026https://github.com/RustPython/RustPython/issues/4769#issuecomment-6014528765
#8982https://github.com/RustPython/RustPython/issues/8982
youknowonehttps://github.com/youknowone
completedhttps://github.com/RustPython/RustPython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 6, 2026https://github.com/RustPython/RustPython/issues/4769#event-32590277549
Sign up for freehttps://github.com/signup?return_to=https://github.com/RustPython/RustPython/issues/4769
Sign in to commenthttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/4769
C-bugSomething isn't workinghttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-bug%22
C-compatA discrepancy between RustPython and CPythonhttps://github.com/RustPython/RustPython/issues?q=state%3Aopen%20label%3A%22C-compat%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.