René's URL Explorer Experiment


Title: Add length check, `reduce`, `setstate` on zip from cpython 3.10 by Snowapril · Pull Request #3235 · RustPython/RustPython · GitHub

Open Graph Title: Add length check, `reduce`, `setstate` on zip from cpython 3.10 by Snowapril · Pull Request #3235 · RustPython/RustPython

X Title: Add length check, `reduce`, `setstate` on zip from cpython 3.10 by Snowapril · Pull Request #3235 · RustPython/RustPython

Description: This revision implements optional length-checking to zip and its related new methods (__reduce__, __setstate__). This is new features in cpython 3.10 stable-release. If strict=True option is given to zip, all the iterators to be zipped must have same length. >>>>> a = [1,2,3] >>>>> b = (4,5) >>>>> for k in zip(a,b,strict=True): ..... print(k) ..... (1, 4) (2, 5) Traceback (most recent call last): File "", line 1, in ValueError: zip() argument 2 is shorter than argument 1 >>>>> for k in zip(b,a,strict=True): ..... print(k) ..... (4, 1) (5, 2) Traceback (most recent call last): File "", line 1, in ValueError: zip() argument 2 is longer than argument 1 also implement __setstate__ and __reduce__ for the strict parameter in zipobject. >>>>> z = zip([1,2,3], (4,5,6), strict=True) >>>>> z.__reduce__() (, (, ), True) >>>>> z.__setstate__(False) >>>>> z.__reduce__() (, (, )) Documents https://www.python.org/dev/peps/pep-0618/ python/cpython#20921

Open Graph Description: This revision implements optional length-checking to zip and its related new methods (__reduce__, __setstate__). This is new features in cpython 3.10 stable-release. If strict=True option is given ...

X Description: This revision implements optional length-checking to zip and its related new methods (__reduce__, __setstate__). This is new features in cpython 3.10 stable-release. If strict=True option is given ...

Opengraph URL: https://github.com/RustPython/RustPython/pull/3235

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7bf0e92d-536d-900d-3318-df609bc68ec7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD24C:202631:2654EA:31D6E8:6B024E14
html-safe-nonce891b9a5e61dcfaaaa1fa1891f06dc3ae8785dc91c4049deb08bf5cd1627ec0dd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjRDOjIwMjYzMToyNjU0RUE6MzFENkU4OjZCMDI0RTE0IiwidmlzaXRvcl9pZCI6IjQzNTM1NjIwMjQ3ODYxNTI5ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac19899c696f50670751766b65ebeb922e1702dcbef62e668f4b715553d5e4803d
hovercard-subject-tagpull_request:751463058
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/RustPython/RustPython/pull/3235/files
twitter:imagehttps://avatars.githubusercontent.com/u/24654975?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/24654975?s=400&v=4
og:image:altThis revision implements optional length-checking to zip and its related new methods (__reduce__, __setstate__). This is new features in cpython 3.10 stable-release. If strict=True option is given ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/3235/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F3235%2Ffiles
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%2Fpull%2F3235%2Ffiles
Sign uphttps://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/3235/files
Reloadhttps://github.com/RustPython/RustPython/pull/3235/files
Reloadhttps://github.com/RustPython/RustPython/pull/3235/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests130 (130)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
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
Snowapril:zip_strict_optionhttps://github.com/Snowapril/RustPython/tree/zip_strict_option
Conversation 5 https://github.com/RustPython/RustPython/pull/3235
Commits 4 https://github.com/RustPython/RustPython/pull/3235/commits
Checks 0 https://github.com/RustPython/RustPython/pull/3235/checks
Files changed https://github.com/RustPython/RustPython/pull/3235/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/3235/files
Add length check, reduce, setstate on zip from cpython 3.10 https://github.com/RustPython/RustPython/pull/3235/files#top
Show all changes 4 commits https://github.com/RustPython/RustPython/pull/3235/files
53e8c77 add zip related tests from cpython 3.10 Snowapril Oct 6, 2021 https://github.com/RustPython/RustPython/pull/3235/commits/53e8c77c3b893542b43b68bda1e5fbcf08bd74de
30a37b5 remove decorator on unexpected success test Snowapril Oct 6, 2021 https://github.com/RustPython/RustPython/pull/3235/commits/30a37b5baf03b4d9545893af25d80df1ba01dfd2
1a542d2 add length_check on `zip` via option strict param Snowapril Oct 6, 2021 https://github.com/RustPython/RustPython/pull/3235/commits/1a542d294a5f9612580c9d2c7a0de55ec2440b2f
b4db50b add __setstate__ and __reduce__ from cpython 3.10 Snowapril Oct 6, 2021 https://github.com/RustPython/RustPython/pull/3235/commits/b4db50b59e8b9cd7f022268a6a88e9169b4eb63e
Clear filters https://github.com/RustPython/RustPython/pull/3235/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/3235/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/3235/files
test_builtin.py https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
zip.rs https://github.com/RustPython/RustPython/pull/3235/files#diff-3bf44ecf9fbd979769c3c1324b9c222f4d627bf6348fa1fe64d3b9a3db363c01
Lib/test/test_builtin.pyhttps://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
View file https://github.com/Snowapril/RustPython/blob/b4db50b59e8b9cd7f022268a6a88e9169b4eb63e/Lib/test/test_builtin.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/3235/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
https://github.com/RustPython/RustPython/pull/3235/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
vm/src/builtins/zip.rshttps://github.com/RustPython/RustPython/pull/3235/files#diff-3bf44ecf9fbd979769c3c1324b9c222f4d627bf6348fa1fe64d3b9a3db363c01
View file https://github.com/Snowapril/RustPython/blob/b4db50b59e8b9cd7f022268a6a88e9169b4eb63e/vm/src/builtins/zip.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/3235/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/3235/files#diff-3bf44ecf9fbd979769c3c1324b9c222f4d627bf6348fa1fe64d3b9a3db363c01
https://github.com/RustPython/RustPython/pull/3235/files#diff-3bf44ecf9fbd979769c3c1324b9c222f4d627bf6348fa1fe64d3b9a3db363c01
https://github.com/RustPython/RustPython/pull/3235/files#diff-3bf44ecf9fbd979769c3c1324b9c222f4d627bf6348fa1fe64d3b9a3db363c01
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.