Env Variable to Auto-Name and Recognize __pycache__ As .__pycache__
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
Proposal:
Introduce a Bash environment variable (PYTHON_PYCACHE_HIDDEN) that, when set, automatically names and recognizes the __pycache__ directory as .__pycache__. This change aims to improve directory cleanliness by making the __pycache__ directory hidden by default, reducing visual clutter in project directories.
The __pycache__ directory, often clutters project directories. While necessary for Python's efficient execution, it can be an eyesore, especially in larger projects. Making this directory hidden by default would: improve directory readability, maintain compiled functionality, and introduce optional visibility.
Bottom line, __pycache__ directory enhances Python's execution efficiency by storing compiled bytecode, but its contents are rarely useful for regular viewing, cluttering project directories unnecessarily.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue では、ファイル、テスト、エントリポイントが指定されていません。まず、CPython における pycache ディレクトリの命名と認識の処理箇所を特定し、次に環境変数がどのように処理されているかを確認してください。PYTHON_PYCACHE_HIDDEN の opt-in 設定によって一貫して .pycache が使用・認識され、コンパイル済みバイトコードの動作を壊さない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- operating-systems
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100