Skip to content

gh-146396: Improve tarfile documentation — unify examples, clarify Ta…#151909

Open
tangyuan0821 wants to merge 1 commit into
python:mainfrom
tangyuan0821:146396
Open

gh-146396: Improve tarfile documentation — unify examples, clarify Ta…#151909
tangyuan0821 wants to merge 1 commit into
python:mainfrom
tangyuan0821:146396

Conversation

@tangyuan0821

@tangyuan0821 tangyuan0821 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

…rInfo.size, add recipes

Clean up the tarfile documentation: unify all examples to consistently use the with statement, clarify that TarInfo.size refers to the file data size excluding header blocks, and add practical examples for in-memory reads via extractfile() and streaming with 'r|*' mode.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33243738 | 📁 Comparing d6ae724 against main (476b649)

  🔍 Preview build  

1 file changed
± library/tarfile.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant