Title: Extract ZipInfo for archive functionality · Issue #123424 · python/cpython · GitHub
Open Graph Title: Extract ZipInfo for archive functionality · Issue #123424 · python/cpython
X Title: Extract ZipInfo for archive functionality · Issue #123424 · python/cpython
Description: In #123354, I found the need to copy code from zipfile into the test: cpython/Lib/test/test_zipfile/_path/test_path.py Lines 662 to 676 in 9e108b8 def for_name(cls, name, archive): """ Construct the same way that ZipFile.writestr does. T...
Open Graph Description: In #123354, I found the need to copy code from zipfile into the test: cpython/Lib/test/test_zipfile/_path/test_path.py Lines 662 to 676 in 9e108b8 def for_name(cls, name, archive): """ Construct th...
X Description: In #123354, I found the need to copy code from zipfile into the test: cpython/Lib/test/test_zipfile/_path/test_path.py Lines 662 to 676 in 9e108b8 def for_name(cls, name, archive): ""&quo...
Opengraph URL: https://github.com/python/cpython/issues/123424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extract ZipInfo for archive functionality","articleBody":"In https://github.com/python/cpython/pull/123354, I found the need to copy code from zipfile into the test:\r\n\r\nhttps://github.com/python/cpython/blob/9e108b8719752a0a2e390eeeaa8f52391f75120d/Lib/test/test_zipfile/_path/test_path.py#L662-L676\r\n\r\nLet's instead extract that functionality in the zipfile module for re-use in the test (before it starts diverging).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-123429\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/jaraco","@type":"Person","name":"jaraco"},"datePublished":"2024-08-28T13:03:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/123424/cpython/issues/123424"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c553ba21-1b4b-f31f-823d-5c743285191b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D400:2F5B11:701ECE:9A090D:6969E52D |
| html-safe-nonce | fec642bd42d9d49c603bde2313f3a7f58b57e11eb71b69a894c2170a98ce3d8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDAwOjJGNUIxMTo3MDFFQ0U6OUEwOTBEOjY5NjlFNTJEIiwidmlzaXRvcl9pZCI6Ijg3NDI5NDI4ODA5OTc5NTg5NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c67555c792584040d4d8a977c87f3502c12436e6cbbe12f2612c273a6dfdffb7 |
| hovercard-subject-tag | issue:2492022923 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/123424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef526cdd74475b0835edc8b8a89d2dcf2a1c036062cd36cbe8ac51971b0875a8/python/cpython/issues/123424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef526cdd74475b0835edc8b8a89d2dcf2a1c036062cd36cbe8ac51971b0875a8/python/cpython/issues/123424 |
| og:image:alt | In #123354, I found the need to copy code from zipfile into the test: cpython/Lib/test/test_zipfile/_path/test_path.py Lines 662 to 676 in 9e108b8 def for_name(cls, name, archive): """ Construct th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaraco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width