python / python/cpython

Discussion of sys module in Data Model

未關閉
#125,495 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

docs
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

Documentation

In the section titled "I/O objects (also known as file objects)" in the Data Model chapter, it says:

The objects sys.stdin, sys.stdout and sys.stderr are initialized to file objects corresponding to the interpreter’s standard input, output and error streams; they are all open in text mode and therefore follow the interface defined by the io.TextIOBase abstract class.

However, neither the sys nor the io modules have been introduced (and probably should not be in this chapter). Is it appropriate to talk about module-specific features here? Or maybe this text should be modified to lean towards those objects just as examples of file objects?

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 Data Model 章節中的「I/O objects (also known as file objects)」部分開始,閱讀周圍的討論,以評估對 sys 和 io 的引用是否以適當的方式引入。完成的標準是釐清應保留這些特定於模組的範例,還是修改該段內容,僅將它們作為 file objects 的範例來呈現。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。