Title: tarfile.open(): Protocols for pipe modes · Issue #12182 · python/typeshed · GitHub
Open Graph Title: tarfile.open(): Protocols for pipe modes · Issue #12182 · python/typeshed
X Title: tarfile.open(): Protocols for pipe modes · Issue #12182 · python/typeshed
Description: The pipe modes for tarfile.open() require only a simplified file object, not the full protocol. From the documentation: For special purposes, there is a second format for mode: 'filemode|[compression]'. tarfile.open() will return a TarFi...
Open Graph Description: The pipe modes for tarfile.open() require only a simplified file object, not the full protocol. From the documentation: For special purposes, there is a second format for mode: 'filemode|[compressi...
X Description: The pipe modes for tarfile.open() require only a simplified file object, not the full protocol. From the documentation: For special purposes, there is a second format for mode: 'filemode|[compr...
Opengraph URL: https://github.com/python/typeshed/issues/12182
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tarfile.open(): Protocols for pipe modes","articleBody":"The pipe modes for `tarfile.open()` require only a simplified file object, not the full protocol. From [the documentation](https://docs.python.org/3/library/tarfile.html#tarfile.open):\r\n\r\n> For special purposes, there is a second format for mode: 'filemode|[compression]'. [tarfile.open()](https://docs.python.org/3/library/tarfile.html#tarfile.open) will return a [TarFile](https://docs.python.org/3/library/tarfile.html#tarfile.TarFile) object that processes its data as a stream of blocks. No random seeking will be done on the file. If given, fileobj may be any object that has a [read()](https://docs.python.org/3/library/io.html#io.RawIOBase.read) or [write()](https://docs.python.org/3/library/io.html#io.RawIOBase.write) method (depending on the mode) that works with bytes. [...]\r\n\r\nBut currently, adding support for those modes is not possible, since mypy can't process string literals that contain a pipe character: python/mypy#16367. This will be fixed in mypy 1.11.","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2024-06-21T09:36:27Z","url":"https://github.com/python/typeshed/issues/12182"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:179b6cd3-2503-0601-e687-44de5c9b68e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D402:3EE843:2464890:31AD1AA:6B003A50 |
| html-safe-nonce | 580446d5403596e3f5978c2f39df8768c1303c521d6c33b7d8061ae88c66711b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDAyOjNFRTg0MzoyNDY0ODkwOjMxQUQxQUE6NkIwMDNBNTAiLCJ2aXNpdG9yX2lkIjoiNjEwMjc0NDA4MDkzMDg0NzMxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7cc36fb21c6e398a0db7fd27f24ecd178e255f514b0be693a737aea71b3dd6bf |
| hovercard-subject-tag | issue:2366140417 |
| 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/typeshed/12182/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f5197a0c263d55ad1d6a92711c6dd7d132eeb08edc832eced84bbc76e5893bc/python/typeshed/issues/12182 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f5197a0c263d55ad1d6a92711c6dd7d132eeb08edc832eced84bbc76e5893bc/python/typeshed/issues/12182 |
| og:image:alt | The pipe modes for tarfile.open() require only a simplified file object, not the full protocol. From the documentation: For special purposes, there is a second format for mode: 'filemode|[compressi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srittau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width